Thanthla
Thanthla

Reputation: 586

Netbeans: start debugging without breakpoint

Somewhere in my program is a infinit loop. I start the programm and it does not stop. Since I have no idea where the issue is, I can not use breakpoints.

Is there a way to start debugging manually after a given time in Netbeans? Then the curser should be inside the invalid while loop.

Upvotes: 0

Views: 197

Answers (1)

Joachim Rohde
Joachim Rohde

Reputation: 6045

When you start your program in debugging mode you can hit any time "Debug/Pause" and see under "Window/Debugging/Call Stack" where your program currently is. Another idea would be to use the profiler to see which method uses more time than expected.

Upvotes: 1

Related Questions