Reputation: 17736
I'm working on setting up an environment to get debugging working for my program and I found these instructions online to get it to work with Chrome but I want it to work with Visual Studio Code:
Is this enough information to get debugging to work with Visual Studio Code?
More information when visiting the URL:
[
{
"description": "Program",
"devtoolsFrontendUrl": "chrome-devtools://devtools/bundled/inspector.html?experiments=true&ws=127.0.0.1:9345/devtools/page/abc123",
"faviconUrl": "https://www.example.com/favicon.ico",
"id": "abc123",
"title": "abc123",
"type": "page",
"url": "",
"webSocketDebuggerUrl": "ws://127.0.0.1:9345/devtools/page/abc123"
}
]
Upvotes: 1
Views: 347
Reputation: 1681
Those instructions are not enough for debugging within VSCode.
To be able to debug in VSCode you should add a debug launch configuration:
Open the debug view (debug icon or Ctrl+Shift+D)
example launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:9345",
"webRoot": "${workspaceFolder}"
}
]
}
Check out the docs for more information.
Upvotes: 1