在 Eclipse 中调试一个大循环
我正在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您想要设置条件断点。阅读我提供的链接,了解 python 中的解释和示例。
You want to set a conditional breakpoint. Read through the link I provided for an explanation and example in python.
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