0
点赞
收藏
分享

微信扫一扫

vscode跟踪vue代码方法


首先安装插件

vscode跟踪vue代码方法_Chrome

vscode跟踪vue代码方法_ide_02

同时打开上面的右边的齿轮图标,就是打开文件

launch.json

vscode跟踪vue代码方法_chrome_03

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: ​​Debugging in Visual Studio Code​​
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "​​http://localhost:3000​​",
"webRoot": "${workspaceFolder}"
}
]
}

上面端口号根据自己需要进行设置

vscode跟踪vue代码方法_Chrome_04

点击上面的爬虫图标,就可以进行跟踪运行了,目前在vscode打断点好像不行,可以通过debugger代码是可以有断点

vscode跟踪vue代码方法_vscode_05

但可以通过在Chrome里进行设置断点,如下图

vscode跟踪vue代码方法_ide_06

上面的源文件里的行数里进行设置断点是有效的,可以进行跟踪等

vscode跟踪vue代码方法_vue.js_07

上面

vscode跟踪vue代码方法_ide_08

这个是一步步跟踪,

vscode跟踪vue代码方法_vue.js_09

这个是继续运行的意思

举报

相关推荐

0 条评论