Debugger for chrome
阿新 • • 發佈:2018-11-28
Debugger In VScode
Getting Started
- Install the extension
Debugger for chrome
- Config the
launch.json
- Start debugging
Launch
{ "version": "2.0.0", "configurations": [ { "name": "Launch localhost", "type": "chrome", "request": "launch", "url": "http://localhost/index.html", "webRoot": "${workspaceFolder}/wwwroot" }, { "name": "Launch index.html", "type": "chrome", "request": "launch", "file": "${workspaceFolder}/index.html" }, ] }
Attach
{ "version": "0.1.0", "configurations": [ { "name": "Attach to url with files served from ./out", "type": "chrome", "request": "attach", "port": 9222, "url": "<url of the open browser tab to connect to>", "webRoot": "${workspaceFolder}/out" } ] }