经过几个月的使用,VS Code的调试器突然停止工作。我试图在文件linkedListIntersection.js上使用它,并收到以下错误:
Attribute 'program' does not exist ('/path/to/linkedListIntersection.js').
我的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}/path/to/linkedListIntersection.js"
}
]
}
类似问题的答案集中在更正指定的文件上,但是我只有一个文件。
此外,每当我尝试在任何文件上启动调试会话时,都会收到上述错误。奇怪的是linkedListIntersection.js
,即使我尝试在另一个文件中启动调试时,错误也始终指向。
我设法通过删除linkedListIntersection.js
launch.json
文件解决了这个问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句