在Eclipse中使用Pydev的交互式控制台? [英] Interactive console using Pydev in Eclipse?

查看:274
本文介绍了在Eclipse中使用Pydev的交互式控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Pydev插件在Eclipse中调试我的Python代码。我可以打开一个Pydev控制台,它给我两个选项:当前活动编辑器的控制台和Python控制台。但是,没有一个在断点后检查当前变量状态是有用的。



例如,代码在断点处停止,我想使用控制台。但是我的变量不可用。如何做dir(action)等事情? (即使不使用控制台)

解决方案

此功能在此记载:



http://pydev.org/manual_adv_debug_console.html


I'm debugging my Python code in Eclipse using the Pydev plugin. I'm able to open a Pydev console and it gives me two options: "Console for currently active editor" and "Python console". However none of them is useful to inspect current variable status after a breakpoint.

For example, the code stopped at a breakpoint and I want to inspect an "action" variable using the console. However my variables are not available. How can I do things like "dir(action)", etc? (even if it is not using a console).

解决方案

This feature is documented here:

http://pydev.org/manual_adv_debug_console.html

这篇关于在Eclipse中使用Pydev的交互式控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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