To enter the AcuBench debugger, select the program in either the File view or the Structure view of the Workspace window, then select Go from the Debug menu. You can also click the Go button on the Debug toolbar or use a shortcut key (F8 by default). Note that the first time you select Go, the debugger opens the program source file and places the cursor at the first line of execution. When you select Go a second time, the program resumes execution from its current location. The program transfers control to the debugger when it reaches a breakpoint.
If your source file is already open in the Code Editor, you can launch the debugger by clicking on the editing window and selecting Go from the Debug menu.
Note that when your program is launched, a corresponding button is added to the Windows taskbar. When the program displays and accepts a screen, that screen does not automatically appear in the foreground. Click the button on the taskbar to shift focus from AcuBench to the running program.
Once a program has begun execution in the debugger, control is returned to the debugger in one of the following ways:
User-defined breakpoints are discussed in more detail later in this chapter.
This behavior is similar to a breakpoint. Execution halts and the debugger cursor displays on a specific line. If you have not compiled with any debugging options, symbols and source are unavailable.
If the Output window is closed, it pops up over the lower portion of the screen when you enter the debugger. You can open it at other times by selecting Output Window from the View menu or by clicking the Output Window toolbar button. When you quit or exit the debugger, the Output window remains open until you close it by toggling the Output Window button or View menu command, or by clicking the window’s Close button.