2

I set breakpoint using the "Sources" tab within the Chrome debugging console (within React Native Debugger)....but when I double-press R to refresh app the breakpoints dissapear. Anyone know how to persist breakpoints on refresh?

Thanks

james murphy
  • 1,505
  • 5
  • 31
  • 57

1 Answers1

3

Unfortunately, the debugger removes the breakpoints every time you refresh the app, a workaround could be adding in the code: debugger; in the line you want to put the breakpoint.

Yossi
  • 5,577
  • 7
  • 41
  • 76
Mariano Miani
  • 182
  • 1
  • 3
  • 15
  • Can you provide an example of this use case? How and where do I put that? It doesn't do anything for me. – parohy Jan 08 '19 at 09:32
  • Literally put line `debugger;` in your code and debugger will stop there. But notice two Gs. – Marko Jan 25 '19 at 17:31