简体   繁体   English

Ipython在pydev交互式调试控制台(eclipse)

[英]Ipython in pydev interactive debugging console(eclipse)

I have ipython working in pydev when using the normal interactive console, however when entering debug mode the console reverts to the standard pydev console. 我在使用普通交互式控制台时在pydev中使用ipython,但是当进入调试模式时,控制台将恢复为标准的pydev控制台。 If I close this console and re-open it, ipython returns and I can use it as normal. 如果我关闭这个控制台并重新打开它,ipython会返回,我可以正常使用它。 Am I missing something, or is this a bug? 我错过了什么,或者这是一个错误?

-Eric -Eric

Actually since PyDev version 3.0 you can attache a IPython console to a debug-session: http://pydev.org/manual_adv_interactive_console.html#full-debug-support-in-interactive-console 实际上,从PyDev 3.0版开始,您可以将IPython控制台附加到调试会话: http//pydev.org/manual_adv_interactive_console.html#full-debug-support-in-interactive-console

To enable that feature, go to window > preferences > PyDev > Interactive Console and check 'Connect console to Debug Session?' 要启用该功能,请转到window > preferences > PyDev > Interactive Console然后选中'Connect console to Debug Session?' .

Then only hassle is that you have to re-open a new IPython-console every time you re-launch the program in debug-mode. 然后,麻烦的是每次在调试模式下重新启动程序时都必须重新打开一个新的IPython控制台。

Actually, Eclipse itself can have multiple consoles open at the same time... if you want, you can create multiple console views and pin a different console to each view (if you don't pin the console, one console will be shown on top of the other and you'll have to do the switching from one to the other manually). 实际上,Eclipse本身可以同时打开多个控制台......如果需要,您可以创建多个控制台视图并为每个视图固定不同的控制台(如果您没有固定控制台,则会显示一个控制台在另一个的顶部,您将不得不手动切换到另一个)。

As it is now, the debug console is not the same as the interactive console (it's a simpler version because of issues with the eclipse integration, although there are plans to be able to attach an interactive console to a debug session). 就像现在一样,调试控制台与交互式控制台不同(由于eclipse集成存在问题,它是一个更简单的版本,尽管计划能够将交互式控制台连接到调试会话)。

So, what you described is what should really happen (not really a bug). 所以,你所描述的是应该发生什么(不是真正的错误)。

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

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