r/reactnative • • 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:

https://youtu.be/NexWmQN5gY8

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?

7 Upvotes

14 comments sorted by

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/royalraju907 Oct 25 '26

HI, we have build in network tab in dev tools which captures same, so your tool is doing something unique or some more enhancement with your tool ??

1

u/dumbledayum Oct 11 '26

argent+claude/codex/antigravity

1

u/royalraju907 Oct 11 '26

I agree with you, but AI can suggest a fix, but you still need to verify whether it actually fixed the bug or just moved it somewhere else

DevTools helps you understand the root cause, inspect runtime behavior, and verify fixes. AI and debugging tools aren't competitors, knowing how to debug makes you better at using AI, too

1

u/[deleted] Oct 11 '26 • Bravo

[removed] — view removed comment

1

u/raju_gupta Oct 11 '26

Thanks for your suggestion and glad you liked, sure will take feedback and will break into chapters, others part I am thinking of native debugging as most of the dev don't know how to debug natively and most painful area of get any native issue but others part like network and profiler will record once get time.

I used 0.87 for recording.

Once again thanks

2

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/raju_gupta Oct 11 '26

Yeah idea is same,

Will create native modules

1

u/raju_gupta Oct 17 '26

HI https://youtu.be/oGq0yZ3z9ks

Just wanted to let you know I made one video for ios as per your suggestion, as most of the developer in my office itself don't have idea how to debug natively, so just thanks for suggesting, next will do with android studio

0

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/raju_gupta Oct 11 '26

I didn't understand?

1

u/raju_gupta Oct 11 '26

If these are some suggestions, will share in other video and will let you know

0

u/[deleted] Oct 11 '26

[removed] — view removed comment

1

u/raju_gupta Oct 11 '26

Yeah got it, of course it's a nice suggestion, will do in next one once get time, thanks