Skip to content

Instantly share code, notes, and snippets.

View moreirapontocom's full-sized avatar

Lucas Moreira moreirapontocom

View GitHub Profile
@moreirapontocom
moreirapontocom / launch.json
Created September 11, 2021 17:55
Debug React apps in VS Code with breakpoints
// 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",