互动pyDev控制台在断点 [英] Interactive pyDev console at breakpoint

查看:113
本文介绍了互动pyDev控制台在断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Aptana Studio与Pydev 1.5.3来调试我的Django应用程序。我使用PyDev的远程调试器和manage.py中的一些代码,并且大部分时间此设置正常工作 - 我可以设置断点,检查变量并逐步执行我的代码。



但是,我想在断点处执行任意代码 - 在从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆