我可以在IntelliJ Idea中停止自定义循环迭代吗? [英] Can I stop on custom loop iteration in IntelliJ Idea?
本文介绍了我可以在IntelliJ Idea中停止自定义循环迭代吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我的问题是我有大数组在我的for循环中循环并且在~400次迭代时某些方法失败。当我达到例如i = 400时,我可以让Idea调试器停止吗?如果是的话,我该怎么办呢?
提前谢谢。
Hi my problem is that I have big array to loop through in my for cycle and on ~400th iteration some method fails. Can I make Idea debugger stop when i reaches for example i=400? If yes, than how can I do it? Thank you in advance.
推荐答案
您可以通过配置断点条件将在 i == 400
时命中。
You can do it by configuring a breakpoint condition that will hit when i==400
.
这篇关于我可以在IntelliJ Idea中停止自定义循环迭代吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文