1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EclipseでFor文・while文を任意の回数で止める

Posted at

eclipseでデバッグしていて、3桁回目のwhile文の処理で止めたい、という状況になりました。
最初のうちは泥臭く連打していましたが、普通に設定できました。

手順

1.止めたい箇所にブレークポイントを置く
2.ブレークポイント上で右クリックし、ブレークポイントのプロパティを開く
3.hit countを任意の数に設定
┗例:100回目で止めたい場合には100と入力
4.任意の数で止まる!

注意点

上記で設定した場合、本当にその回数でしか止まらなくなります。
例:100で設定した場合、101回目以降は止まりません。
「100回目以降の処理全部見たいから100で止めよう!」みたいな意図でやると「あれ?」となるので注意が必要です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?