[英]Visual Studio Code - launch.json and debugger is stuck on Python
When I installed Visual Studio Code I configured it for Python.当我安装 Visual Studio Code 时,我为 Python 配置了它。 Now when I try to use it for Node.js it still thinks I am trying to debug Python.
现在,当我尝试将它用于 Node.js 时,它仍然认为我正在尝试调试 Python。
Also it is stuck on the original launch.json file from another directory.它也卡在另一个目录中的原始launch.json文件上。 I tried adding a configuration for Node.js, but Visual Studio Code is still using the Python launch configuration in the other directory.
我尝试为 Node.js 添加配置,但 Visual Studio Code 仍在使用其他目录中的 Python 启动配置。
Additionally the Debug pick list only has options for Python.此外,调试选择列表只有 Python 的选项。 I looked at Launch.json in Visual Studio Code , but it doesn't solve my problem.
我查看了 Visual Studio Code中的Launch.json ,但它没有解决我的问题。
I need help because I've been tasked to start learning Node.js.我需要帮助,因为我的任务是开始学习 Node.js。
In order to get Visual Studio Code to debug JavaScript, delete the .vscode folder which deletes the launch.json file.为了让 Visual Studio Code 调试 JavaScript,请删除删除 launch.json 文件的.vscode文件夹。
For some reason, Visual Studio Code remembers the last launch.json file and tries to use it.出于某种原因,Visual Studio Code 会记住最后一个launch.json文件并尝试使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.