Skip to content

Instantly share code, notes, and snippets.

@pcdavid
Last active September 7, 2020 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcdavid/8273dd87c051ce35159c1559571ab4b7 to your computer and use it in GitHub Desktop.
Save pcdavid/8273dd87c051ce35159c1559571ab4b7 to your computer and use it in GitHub Desktop.
VS Code configuration to enable live debugging from Chromium
  1. Make sure you have the "Debugger for Chrome" VS Code extension installed.
  2. Put this file in the .vscode folder at the root of the create-react-app project.
  3. Adjust the path to the Chrome/Chromium binary if needed.
  4. Launch the app normally with npm run start.
  5. Start debugging in VS Code with F5.

See:

{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/src",
"runtimeExecutable": "/snap/bin/chromium"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment