json VS Code Angular 4调试:Angular CLI
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json VS Code Angular 4调试:Angular CLI相关的知识,希望对你有一定的参考价值。
{
"noteComment": "I copied this from https://stackoverflow.com/questions/42495655/how-to-debug-angular-with-vscode",
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4200",
"webRoot": "${workspaceRoot}",
"sourceMaps": true,
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"runtimeArgs": [
"--disable-session-crashed-bubble"
]
},
{
"name": "Attach Chrome",
"type": "chrome",
"request": "attach",
"url": "http://localhost:4200",
"port": 9222,
"webRoot": "${workspaceRoot}",
"sourceMaps": true
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium-browser",
"url": "http://localhost:4200/#",
"webRoot": "${workspaceRoot}"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium-browser",
"url": "http://localhost:9876/debug.html",
"webRoot": "${workspaceRoot}"
},
{
"name": "ng e2e",
"type": "node",
"request": "launch",
"runtimeExecutable": "/usr/bin/chromium-browser",
"program": "${workspaceRoot}/node_modules/protractor/bin/protractor",
"protocol": "inspector",
"args": [
"${workspaceRoot}/protractor.conf.js"
]
}
]
}
以上是关于json VS Code Angular 4调试:Angular CLI的主要内容,如果未能解决你的问题,请参考以下文章
未绑定断点 - VS Code |铬 |角
VS Code:使用 express 帮助调试 Angular 2
如何使用 Angular 和 Flutter(都是 Dart)为工作区设置 VS Code 调试?
使用ng serve 在Vs Code里调试 anguar 项目
在 VS Code 中调试 Angular Universal Starter App 的服务器端不起作用
json VS Code Chrome调试器 - 如何配置