Skip to content

Instantly share code, notes, and snippets.

@moreirapontocom
moreirapontocom / launch.json
Created Sep 11, 2021
Debug React apps in VS Code with breakpoints
View launch.json
// Start the task first running npm start or CMD+Shift+B (run build task)
// To disable React auto-launch in the default browser, I added "BROWSER=none" into the npm start script.
// Then run the debug session with F5. It will launch Chrome and breakpoints will work
// launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",