简体   繁体   English

VIisual Studio 代码对我的 Python 代码使用错误的调试器(PLSQL 调试器)

[英]VIisual Studio Code using the wrong debugger (PLSQL Debugger) for my Python code

very basic one here.非常基本的一个。 I wrote some Python code that worked fine, then used VS Code for SQL work.我写了一些运行良好的 Python 代码,然后使用 VS Code 进行 SQL 工作。

Now I want to reuse Python and try as I might I can't get it to Run without first Debugging in PLSQL Debug.现在我想重用 Python 并尝试如果没有在 PLSQL 调试中进行第一次调试,我可能无法让它运行。 Even if I choose Run -> Run Without Debugging the terminal doesn't load the results of the Python script.即使我选择 Run -> Run without Debugging 终端也不会加载 Python 脚本的结果。 Instead I get in the Debug Console:相反,我进入调试控制台:

"Debug started on port 4000, waiting on the client to connect..." “调试从 4000 端口开始,等待客户端连接……”

I am sure there is a straightforward answer to this, but how do I get back to VS Code treating my Python code like Python code?我确信对此有一个简单的答案,但是我如何回到 VS Code 处理我的 Python 代码,如 Python 代码? Thanks!谢谢!

Your configurations have been changed when you first run PLSQL debug.首次运行 PLSQL 调试时,您的配置已更改。 Go to your main project path find the .vscode folder and delete launch.json . Go 到您的主项目路径找到.vscode文件夹并删除launch.json

图片

After you deleted launch.json file, go to Run and Debug and start a new python debug mode删除launch.json文件后,go Run and Debug并启动新的 python 调试模式

在此处输入图像描述

You can select the debug file type in Run and Debug .您可以 select 在Run and Debug中调试文件类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM