According to the Microsoft Documentation, the Visual Studio Code debugger should be able to debug typescript and javascript.
Problematically, they only provide examples for server side apps using node or python. Intellisense only suggests server languages.
Is it possible to debug client-side typescript or javascript apps with the Visual Studio Code debugger?
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"
]
}
]
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…