简体   繁体   English

调试控制台中的PyDev程序输出

[英]PyDev program output in debug console

Please bear with me if this is very basic, as I'm quite new to PyDev. 如果这是非常基本的内容,请接受我的意见,因为我是PyDev的新手。 Is there some way to redirect the program output to a PyDev debug console? 有什么方法可以将程序输出重定向到PyDev调试控制台? I'm referring to something like in Matlab. 我指的是Matlab中的类似内容。 As of now, I have one console for the output where I cannot enter commands, and another in interactive mode. 到目前为止,我有一个控制台无法输出命令,而另一个控制台处于交互模式。 It's not the most convenient thing to keep switching between the two while debugging. 在调试时保持两者之间的切换并不是最方便的事情。

Thanks! 谢谢!

I believe that what you want is the interactive console: 我相信您想要的是交互式控制台:

Check http://pydev.org/manual_adv_interactive_console.html 检查http://pydev.org/manual_adv_interactive_console.html

After having it open, you can execute a file and have its tokens available with Ctrl+Alt+Enter (which is also the binding to open it... and you can do a selection and send only some of the contents to it too). 打开文件后,您可以执行文件并通过Ctrl + Alt + Enter来使用其令牌(这也是打开文件的绑定...,您可以进行选择并仅向其中发送一些内容) 。

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

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