在 Eclipse 中调试一个大循环

发布于 2024-12-28 22:14:13 字数 123 浏览 3 评论 0原文

我正在 Eclipse 中调试 Python 程序。

我在一个大循环中有一个断点,我预计问题会出现在第(1000+)轮中。我怎样才能尽快达到这个目标,而不是点击 resume 1000 次?

I am debugging a Python program in Eclipse.

I have a breakpoint in a big loop and I expect the problem to occur in the (1000+)th round. How can I reach that ASAP instead of clicking resume 1000 times?

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

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

发布评论

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

评论(2

二手情话 2025-01-04 22:14:13

您想要设置条件断点。阅读我提供的链接,了解 python 中的解释和示例。

You want to set a conditional breakpoint. Read through the link I provided for an explanation and example in python.

一萌ing 2025-01-04 22:14:13

Ctrl-R 相当于在光标所在行放置一个断点并单击“恢复”按钮,只不过它不会在系统中留下不必要的断点。

这是您要找的吗?

看看这个: http://www.clear.rice.edu/comp310 /Eclipse/debugging.html

Ctrl-R is the equivalent to placing a breakpoint on the cursor's line and clicking the "Resume" button, except that it doesn't litter your system with unnecessary breakpoints.

Is this what you are looking for?

Take a look at this: http://www.clear.rice.edu/comp310/Eclipse/debugging.html

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