r/reactnative • u/royalraju907 • Oct 11 '26
Tutorial How do you debug in React Native? I made a walkthrough of breakpoints, stepping and Watch in DevTools
I used to debug almost everything with console.log, and it cost me a lot of time. Once I started using breakpoints in React Native DevTools, finding bugs got much faster.
Here's the short version of what helped me:
- Breakpoints pause your app at an exact line, so you can inspect the real values at that moment instead of guessing which logs to add
- Stepping (step over / step into / step out) lets you follow the code line by line and see where it goes wrong
- Watch lets you track specific variables or expressions as the code runs, without adding a log for each one
- Different breakpoint types are useful in different situations, for example when a bug only happens under a certain condition
I recorded a video that explains why breakpoints are worth using and shows each of these live in React Native DevTools:
I'm getting back into making videos after a long break, so I'd really like honest feedback.
Question for everyone: what's your debugging setup in React Native? Do you use DevTools breakpoints, Flipper, console.log, or something else? And is there a debugging topic you'd like me to cover next?
1
u/locnguyen305 Oct 25 '26
Hi op,
I’m Stephen, the founder of Rockxy. I built it for the part of React Native debugging that starts when the code looks right but the API call still fails.
Rockxy is a native Mac proxy. It captures HTTP/HTTPS requests from iOS Simulator, Android Emulator and physical devices, so you can see the URL, headers, body, response and timing. You can filter out the noise, edit and replay a request, use Map Local to test a 401 or 500, add breakpoints, and inspect WebSocket traffic. There’s also a local MCP server if you want a coding assistant to inspect captured requests.
It has a free mode, and the Community source is public. I’d love for you to put it through a real React Native bug and tell me what works or gets in your way.
Website: https://rockxy.io
Document: https://docs.rockxy.io/
Source code: https://github.com/RockxyApp/Rockxy
1
u/dumbledayum Oct 11 '26
argent+claude/codex/antigravity
1
u/[deleted] Oct 11 '26 •
[removed] — view removed comment
0
u/[deleted] Oct 11 '26
[removed] — view removed comment