kokokok kokokok - 1 year ago 165
Java Question

how to do a system pause in java for debugging?

Is there any functionality in Java for pausing the program like

does in C++?

Answer Source

Doing debugging is best done with a debugger, NetBeans (what you seem to be using if I look at other questions you have asked) has one. Just click in the left margin of an editor window to set a breakpoint and run the debugger. Program execution will stop at the breakpoint and you can have a look at the current state of variables, or step through the program line by line.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download