vscode调试js打断点无法停住,一般都是配置没备好,走过的路坎坷但有意义。
- 解决措施
Launch.json中配置如下:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080/login",
"webRoot": "${workspaceFolder}"
}
]
}
extensions.json中配置如下:
{
"recommendations": [
"msjsdiag.debugger-for-chrome"
]
}
- 调试效果
断点处停住了,而且单步调试也能进入vue。