rah*_*ahs 6 google-chrome-devtools visual-studio-code angular
我正在尝试使用VS Code调试Angular 2应用程序。要将从IE启动的浏览器更改为Chrome,我安装了Chrome调试器。
这是launch.json包含的内容:
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
Run Code Online (Sandbox Code Playgroud)
启动项目(使用ng serve --open)并尝试调试后,我得到:
Error processing "launch": Error: Can't find Chrome - install it or set the "runtimeExecutable" field in the launch config.
<p>at Object.errP (C:\Users\rahs\.vscode\extensions\msjsdiag.debugger-for-chrome-4.1.0\node_modules\vscode-chrome-debug-core\out\src\utils.js:207:13)
<p>at launch.then (C:\Users\rahs\.vscode\extensions\msjsdiag.debugger-for-chrome-4.1.0\out\src\chromeDebugAdapter.js:52:57)
at anonymous
Run Code Online (Sandbox Code Playgroud)
我在同一个主题上提到了这样的问题,但是我使用的是Windows,而Windows特定的答案对我不起作用。
| 归档时间: |
|
| 查看次数: |
3896 次 |
| 最近记录: |