microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
resources/walkthougths/debug-tutor.md
23lines · modecode
| 1 | # Run and Debug your React Native application |
| 2 | ## Create and run debugging scenario |
| 3 | This extension supports generating debugging configuration in the `.vscode/launch.json` file by selecting debugging parameters in dropdown lists at the top of the editor. |
| 4 | |
| 5 |  |
| 6 | |
| 7 | To start debugging, just choose the appropriate configuration in the Configuration dropdown, and then press F5 (or click _Green Arrow_  button) to start debugging your app in VS Code. |
| 8 | |
| 9 | The extension also allows to start debugging without creating the `launch.json` file in one of the following ways: |
| 10 | - Using dynamic debugging configurations |
| 11 | |
| 12 |  |
| 13 | - Using Debug button in the Editor Title area menu |
| 14 | |
| 15 |  |
| 16 | |
| 17 | ## Enable debugging mode and attach to the application |
| 18 | After using one of the suggested methods of launching the application, wait for the application to launch. |
| 19 | |
| 20 | Once app is loaded and running, [open the developer menu](https://reactnative.dev/docs/debugging#accessing-the-in-app-developer-menu) inside your application and enable remote debugging by clicking on `Debug JS Remotely` button. After that, please wait until the extension attaches to your application. |
| 21 | |
| 22 |  |
| 23 | |
| 24 | |