如何在 eclipse 中暂停 python 执行并返回到交互式提示符

发布于 2024-09-24 08:43:37 字数 135 浏览 1 评论 0原文

我使用 Eclipse 作为 Python IDE。无论如何,我可以调试我的程序并中断到交互式提示吗?我有兴趣探索现有数据和运行/测试命令。

我相信一定有办法,但我太习惯编译语言了,以至于我找不到选项在哪里。

有什么想法吗?

I am using Eclipse as a Python IDE. Is there anyway for me to Debug my program and break to an interactive prompt. I am interested in exploring the existing data and running/testing commands.

I believe there has to be a way, but I am so used to compiling languages that I have not been able to find where the options are.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里梦着梦中梦 2024-10-01 08:43:37

您可以通过在 python shell 中使用 PDB(Python 调试器)轻松地做到这一点。
查看 http://docs.python.org/library/pdb.html更多信息。

无论如何,我相信 Eclipse 会让您在设置断点时检查数据。

You can easily do that by using PDB (Python Debugger) inside a python shell.
Look at http://docs.python.org/library/pdb.html for more info.

Anyway I believe Eclipse will let you inspect you data when setting a breakpoint.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文