尝试在 Visual Studio 代码上用 Python 编写一些东西,每次我运行调试时它都会显示终端选项卡而不是调试控制台选项卡,有什么方法可以阻止这种情况发生吗?
请您参考如下方法:
在 Visual Studio Code 中调试 python 时,打印调试输出的位置由工作区的 .vscode/launch.json 文件中的 console 设置定义。
可以看出in the documentation for python debugging in vscode ,特别是在 the console section ,默认值为 "integratedTerminal"。
如果您想覆盖它,只需在 launch.json 中将值设置为 "none"。
