使用“ @ angular / cli”将我的角度应用升级到角度6后:“ ^ 6.2.3”,我的打字稿断点不再起作用。我正在使用VS Code作为IDE和Chrome调试器扩展。
我的launch.json看起来像这样
{
"version": "0.2.0",
"compounds": [{
"name": "Core & Chrome",
"configurations": [
"Chrome",
".NET Core"
]
}],
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Chrome",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}"
},
{
"name": ".NET Core",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.1/pp-images.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"internalConsoleOptions": "neverOpen",
"externalConsole": true,
"launchBrowser": {
"enabled": false,
"args": "${auto-detect-url}",
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
]
}
当我使用角度为5的“ @ angular / cli”:“ 1.6.8”时,一切都正常工作,所以我现在有些困惑,也不想降级。任何建议将不胜感激。
。调试器窗口中的脚本不返回任何信息。
我终于明白了。不得不将“ webRoot”:“ $ {workspaceFolder} / wwwroot”更改为“ webRoot”:“ $ {workspaceRoot} / ClientApp”,它起作用了!希望这对某人有帮助。