简体   繁体   English

Visual Studio Code - launch.json 和调试器卡在 Python 上

[英]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 ,但它没有解决我的问题。

Language Picklist语言选择列表

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.

相关问题 运行工头从视觉工作室代码launch.json开始 - Running foreman start through visual studio code launch.json 如何在launch.json的Visual Studio Code中反转${relativeFile}中的反斜杠? - How to reverse backslashes in ${relativeFile} in Visual Studio Code in launch.json? 在 Visual Studio Code 中,如何在 launch.json 中传递 arguments - In Visual Studio Code, how to pass arguments in launch.json 在 Visual Studio Code 中启用详细调试以启动.json - Enable verbose debugging to launch.json in Visual Studio Code “。”(点)在launch.json的Visual Studio代码“ runtimeArgs”属性中做什么 - What does “.” (Dot) do in Visual Studio Code “runtimeArgs” property of launch.json 无法获取Visual Studio代码在launch.json中运行我的构建命令 - Can't get Visual Studio Code to run my build command in launch.json 在 VS Code-debugger 中,如何在 launch.json 中为 nodejs 使用 envFile? - In VS Code-debugger, how do I use envFile in launch.json for nodejs? Visual Studio代码node.js调试器无法在标准启动时附加 - visual studio code node.js debugger fails to attach on standard launch 运行启动时找不到模块“/Applications/Visual”。json 配置 - Cannot find module '"/Applications/Visual' when running launch.json config VSCode并使用launch.json启动项目 - VSCode and starting a project with launch.json
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM