The current program is defined in the Program Parameters dialog. See for more information. This program can be started in the debugger like this:
From the main menu, select Run ▸ Debug Program or press Shift+F12
A program can be more difficult to debug if it is highly optimized or if debugging information is missing. Whether optimization and debugging information are enabled, is defined in the configure step. Normally, there is a Debug configuration available, that turns off optimization and includes all debugging information. Anjuta displays a warning if this configuration is not used. Seefor more information.
The debugger can be used on an already running application.
From the main menu, select Run ▸ Debug Process... to get a dialog listing all currently running processes.
Select a process in the Attach to process dialog and click on Attach to start the debugger on this process. See for more details.
The debugger can be used to debug an application running on another computer connected through a TCP or serial connection.
From the main menu, select Run ▸ Debug Remote...
Select the type of the connection to the remote application, Serial Line Connection or TCP/IP Connection.
For a TCP connection, fill in the Address and Port fields.
For a serial connection, fill in the text box below with the serial device name, for example /dev/ttyb.
Click on Connect to start the debugger and connect to the remote target.
The debugger and the program can be stopped at any time like this:
From the main menu, select Run ▸ Stop Debugger.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.