根據Microsoft Documentation,Visual Studio代碼調試器應該能夠調試打字稿和javascript。如何在Visual Studio代碼中調試客戶端?
問題在於,它們僅提供使用節點或python的服務器端應用程序示例。智能感知只建議服務器語言。
是否可以使用Visual Studio代碼調試器調試客戶端打字稿或JavaScript應用程序?
launch.json
{
// Use IntelliSense to learn about possible Node.js debug 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":"node" <-- what if I'm building a JS/TS app?
"request": "launch",
"name": "Launch Program",
"program": "${file}",
"outFiles": [
"${workspaceRoot}/out/**/*.js"
]
}
]
}
查看我的答案在這裏https://stackoverflow.com/questions/40045078/vscode-gulp-grunt-script-running-vscode-chrome-debugger-extension/40096464#40096464使用鉻調試器擴展。 – Mark