简体   繁体   English

如何在vscode的新window中打开python调试器?

[英]How to open the python debugger in a new window in vscode?

I have been wanting to open a new window that contains the debugger and have the code that is being debugged in another window.我一直想打开一个新的 window,其中包含调试器并在另一个 window 中调试代码。 I have attempted to follow this guideline: https://github.com/microsoft/vscode/issues/19793#issuecomment-344985923 , but I can't seem the desired result.我已尝试遵循此指南: https://github.com/microsoft/vscode/issues/19793#issuecomment-344985923 ,但我似乎无法获得预期的结果。 The desired result would be to have the debugger in one window and as I'm stepping through the code have another window show where I am at in the code at the current debugging step.期望的结果是将调试器放在一个 window 中,并且当我逐步执行代码时,另一个 window 会显示我在当前调试步骤的代码中所处的位置。 Is this possible in vscode?这在vscode中可能吗?

Here is a picture describing what I'm trying to communicate这是一张描述我要传达的内容的图片

~ Cheers ~ 干杯

At present, VSCode does not support this function.目前VSCode不支持这个function。

In the first link, the code edit box and side folder of the two windows are synchronized, but the terminal console cannot.第一个链接中,两个windows的代码编辑框和侧文件夹是同步的,但是终端控制台不能。

If you want to separate the code from the console and synchronize when debugging, you could try to set "console": "externalTerminal" in the launch.json file.如果您想在调试时将代码与控制台分离并同步,您可以尝试在launch.json文件中设置"console": "externalTerminal" It will open the cmd and display debugging information in the cmd.它将打开 cmd 并在 cmd 中显示调试信息。

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

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