重现步骤:
禁用所有扩展程序时是否会出现此问题?:是
有几次我注意到调试器无法在Visual Studio中启动。有人知道对此有任何解决方法吗?
答案 0 :(得分:1)
你有一个launch.json
档案吗?它应该在.vscode/launch.json
使用以下格式:
{
// Use IntelliSense to learn about possible 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",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/myscript.js"
}
]
}
您可以在此处找到更多信息:https://code.visualstudio.com/Docs/editor/debugging