How do you debug React Native?

后端 未结 30 2802
无人共我
无人共我 2020-11-27 10:19

How does one debug their React code with React Native while the app is running in app simulator?

30条回答
  •  悲哀的现实
    2020-11-27 10:44

    In addition to the other answers. You can debug react-native using the debugger statement

    example:

    debugger; //breaks execution
    

    Your chrome dev tools must be open for this to work

提交回复
热议问题