react-nativereact-native-debugger

React native debugger - how to save breakpoints when refresh app


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


Solution

  • 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.