1. 程式人生 > >vscode斷點除錯

vscode斷點除錯

一、Extensions面板中搜索並安裝Debugger for Chrome外掛

二、Debug面板中,下拉框選擇Add Configuration,出現launch.json,裡面配置chrome資訊

{
        "type": "chrome",
        "request": "launch",
        "name": "Launch Chrome against localhost",
        "url": "http://localhost:8080",
        "webRoot": "${workspaceFolder}"
},

三、在專案檔案裡面打上斷點,啟動除錯。DEBUG CONSOLE 控制檯檢視debug結果。