简体   繁体   中英

How to make PyDev Debug Console Interactive?

PyDev offers both a debug console as well as an interactive console . However, I am still not able to execute interactive commands such as %timeit in the debug console.

How can I make the debug console interactive?

You can't currently make the debug console an IPython interactive console -- you can have a "regular" interactive console by right-clicking a stack-frame in the Debug view > PyDev > Debug Console , but it's not really an interactive console with IPython support.

Starting an IPython session in the context of a breakpoint could end up having side effects that could break your debug session, so, it wasn't implemented -- although in practice, there's probably nothing stopping anyone from implementing it (the only thing is that there should probably be a preference so that users could opt out of it and the time and willingness to actually implement it).

Another option is turn things the other way around. Start an interactive console and have a debugger attached to it -- go to window > preferences > PyDev > Interactive Console and check Connect console to Debug Session?

See: http://www.pydev.org/manual_adv_interactive_console.html#full-debug-support-in-interactive-console for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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