Skip to content

Instantly share code, notes, and snippets.

@katallaxie
Created August 24, 2016 07:20
Show Gist options
  • Save katallaxie/214554751d5de98a7657ad0b248a7b20 to your computer and use it in GitHub Desktop.
Save katallaxie/214554751d5de98a7657ad0b248a7b20 to your computer and use it in GitHub Desktop.
Visual Studio Chrome Debug on OSX
# Open Chrome with Remote Debugging
open -a /Applications/Google\ Chrome.app --args --disable-web-security --remote-debugging-port=9222 http://localhost:9222 --user-data-dir
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
},
{
"name": "Attach to Chrome, with sourcemaps",
"type": "chrome",
"request": "attach",
"url": "http://localhost:3000",
"port": 9222,
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment