Troubleshooting
Browser DevTools
Accessing DevTools
// Add to package.json
{
"chromium-args": "--remote-debugging-port=9222"
}Console Logging
useEffect(() => {
console.log('[MyComponent] Mounted', props);
return () => console.log('[MyComponent] Unmounted');
}, []);
useEffect(() => {
console.log('[MyComponent] Props changed', props);
}, [props]);Common Console Errors
React DevTools
MobX DevTools
Spy on observables
Track reactions
Common Issues & Solutions
Issue: Stale State in Callbacks
Issue: Component Not Re-rendering
Issue: Memory Leaks
Issue: Performance Problems
Debugging Specific Systems
Battle System
Input System
Asset Loading
Development Workflow
Hot Reload Setup
Test Specific Screens
Mock Data for Testing
Logging Best Practices
Structured Logging
Conditional Logging
Performance Logging
See Also
Last updated