What I'm asking is if it's possible to do the following steps in order:
The reason why I launch the program using "Run as..." and not "Debug as..." is because the program hangs (I suspect an infinite loop) at some point, but I'm not able to replicate it consistently. What I mean is that I can make it hang consistently, but it happens during random occasions.
For what it's worth, my program is a game and it hangs at different points in the game, which is why I can't be sure where to put a breakpoint, so it would be great if i could let it run first and then switch to debug at the point where it hangs/loops.
Why don't you just execute your program with "Debug as..." without setting any breakpoint. Then, when it hangs, switch to Eclipse's debug perspective and suspend your program with the double vertical bars button?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With