Debug & Run Angular2 Typescript with Visual Studio Code?

后端 未结 10 1110
情歌与酒
情歌与酒 2020-11-27 10:08

Debug & Run Angular2 Typescript with Visual Studio Code?

I am trying to debug Angular2 typescript application with VS code https://angular.io/gu

10条回答
  •  粉色の甜心
    2020-11-27 11:02

    These mods to launch.json worked for me on MacOS, which enabled me to get the debugger & breakpoints working in a new instance of Chrome per debug session...

    // This forces chrome to run a brand new instance, allowing existing
    // chrome windows to stay open.
    "userDataDir": "${workspaceRoot}/.vscode/chrome",
    "webRoot": "${workspaceRoot}",
    "sourceMaps": true,
    "sourceMapPathOverrides": { "webpack:///./*": "${webRoot}/*" }
    

提交回复
热议问题