【发布时间】:2017-06-22 11:29:33
【问题描述】:
根据Microsoft Documentation,Visual Studio Code 调试器应该能够调试 typescript 和 javascript。
有问题的是,它们仅提供使用 node 或 python 的服务器端应用程序的示例。 Intellisense 仅建议服务器语言。
是否可以使用 Visual Studio Code 调试器调试客户端打字稿或 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"
]
}
]
}
【问题讨论】:
-
使用 chrome 调试器扩展程序在 stackoverflow.com/questions/40045078/… 处查看我的答案。
标签: debugging visual-studio-code