Toc
  1. vsc debug 完全指南 - chrome
  2. vsc debug 完全指南 - node
Toc
0 results found
catzillaorz
VSC Debug完全指南
2020/05/18 Frontend Debug
vsc debug 完全指南 - chrome
  • 安装vsc chrome debug插件
  • 配置config
{
// 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:4200",
"webRoot": "${workspaceFolder}/universal/"
}
]
}
vsc debug 完全指南 - node
  • run with nodemon
nodemon --inspect=0.0.0.0:9229 app.js
  • 安装vsc node debug插件
{
// 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": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/universal/app.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}/universal",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": false,
"outFiles": []
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": true,
"sourceMaps": false,
"outFiles": [],
"localRoot": "${workspaceRoot}/universal/",
"remoteRoot": "http://localhost:8080"
}
]
}

vsc-cn-doc

中文文档已过期,建议查看最新官方文档

打赏
支付宝
微信
本文作者:catzillaorz
版权声明:本文首发于catzillaorz的博客,转载请注明出处!