互动pyDev控制台在断点 [英] Interactive pyDev console at breakpoint
问题描述
但是,我想在断点处执行任意代码 - 在从pdb切换到Eclipse调试之后,我真的很想念的事情。在调试视角中有一个交互式控制台可用,但对我而言是无效的。
所以我的问题是可以在PyDev中使用远程调试器设置一个交互式控制台可以在断点处注入代码?
奇怪的是,我使用pydev 1.5.6进行远程调试,我可以使用交互式控制台 - 我键入cmmand,点击进入,一段时间后得到结果;检查您的防火墙是否阻止任何东西(如果您确定,交互式控制台在本地模式下工作)。在pydev源代码中甚至设置了多少stdout应该返回给客户端(在chars),它应该工作
I'm using Aptana Studio with Pydev 1.5.3 to debug my Django applications. I use PyDev's remote debugger and some code in manage.py and for most of the time this setup is working successfully- I can set breakpoints, inspect variables and step/continue through my code.
However, I'd like to execute arbitrary code at the breakpoint- the thing I really miss after switching from pdb to Eclipse debugging. There is an interactive console available in debug perspective but it is inactive for me.
So my question- is it possible to set up an interactive console in PyDev with remote debugger which could "inject" code at breakpoint?
strange, i am using pydev 1.5.6 for remote debugging and I can use the interactive console - i type the cmmand, hit enter, after a while get results back; check your firewall is not blocking anything (if you are sure, the interactive console works in local mode). there is even settings in pydev source code to set how much of stdout should be returned back to client (in chars), it should work
这篇关于互动pyDev控制台在断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!