Skip to content

Instantly share code, notes, and snippets.

@auchenberg
Last active January 29, 2019 15:10
Show Gist options
  • Save auchenberg/fa5c89e83939c987eb258b5c60b355b1 to your computer and use it in GitHub Desktop.
Save auchenberg/fa5c89e83939c987eb258b5c60b355b1 to your computer and use it in GitHub Desktop.
VSCode + React debug config
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/src"
}
]
}
@InTEGr8or
Copy link

InTEGr8or commented Aug 3, 2018

9: should be: "webRoot": "${workspaceFolder}",

The variable workspaceRoot has been deprecated in favor of workspaceFolder, as per the VS Code website:
https://code.visualstudio.com/docs/editor/variables-reference

Q: Why isn't ${workspaceRoot} documented?
A: The variable ${workspaceRoot} was deprecated in favor of ${workspaceFolder} to better align with Multi-root Workspace support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment