2

I'm debugging React Native in Chrome, app is running on an Android emulator on localhost.

Breakpoints in componentDidMount() are not being hit, but if I wrap some code in a setTimeout() to delay execution, the debugger hits the breapoint and pauses as expected?!

Mihail Kostira
  • 510
  • 7
  • 10
  • This seems to only occur when a file is changed. If you hit "Reload JS" (in the red box) after an error, the breakpoint should be picked up. – aleclarson Feb 03 '19 at 03:40
  • I mentioned this quirk in an issue: https://github.com/react-native-community/discussions-and-proposals/issues/69#issuecomment-460020438 – aleclarson Feb 03 '19 at 14:17

0 Answers0