Suspending and Continuing Execution

  1. Check that your program is running.

  2. Click the thread you want to suspend from the Thread bar.

  3. Click the Suspend button to suspend the thread.

    You can choose to suspend all threads by pressing the right mouse button with the cursor over the Suspend button and choosing "All Threads" from the menu. If your code has reached a breakpoint, the default behavior is to suspend all threads.

  4. Perform operations on the suspended thread as needed.

  5. Click the Continue button to resume execution of the thread.

    You can choose to continue all suspended threads by pressing the right mouse button with the cursor over the Continue button and choosing "All Threads" from the menu. If you are continuing from a breakpoint, the default behavior is to continue all suspended threads.

Note: To avoid a deadlock that would freeze your debugging session, the Java interpreter does not allow the debugger to suspend a thread which is in the process of using certain important Java runtime resources, such as I/O operations.

See Also

Guide to the Cosmo Code Development Environment
12-96*244