This is Debugging Configuration to debug React app with VSCode.
- Make sure you're running the latest version of VSCode.
Also make sure the latest version of the Debugger for Chrome extension is installed in VS Code.If you're using Microsoft Edge browser, install Debugger for Microsoft Edge extension.- Debugger for Chrome extension has been deprecated as Visual Studio Code now has a bundled JavaScript Debugger that covers the same functionality and supports the new Microsoft Edge browser.
- Download
.vscode
folder above and put it into your workspace (project root folder). After download, your project should look like this:my-app/ .vscode/ <-- Must be in Here node_modules/ public/ src/ package.json README.md
- Pick a 'Launch with Chrome' config from the dropdown on the Debug pane on the side of VSCode.
If you're using the new Microsoft Edge browser, select 'Launch with Edge'.
- Press the play button or F5 key to start debugging.
- Set breakpoints in any of the files.
You could do this step before first step.
Note: You can learn more about VSCode debugger within the Debugging in Visual Studio Code.