Debugging a Program

  1. Start Cosmo Code by typing cosmocode at a shell prompt, or by double-clicking the desktop icon.

  2. Double-click a project in the Project card to open it (or, choose Project > Open... and specify the project directory and name.)

  3. Click the Build button to compile your Java program.

  4. Set Breakpoints in the Source panel or in the Breakpoints card.

  5. Click the Run button to run the program.

  6. Click the Suspend button to suspend execution for the current thread, if you wish.

  7. Examine your program's state using the callstack card, stepping through code, or viewing symbol values.

  8. Click the Continue button to resume execution of the program.

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