Start a program with the debugger.
Sébastien Granjoux
seb.sfo@free.fr
Philip Chimento
philip.chimento@gmail.com
Jaume Planas
jplanas@itberga.com 2011
Gil Forcada
gilforcada@guifi.net 2013

# Debug a program

# Start a program in the debugger

The current program is defined in the Program Parameters dialog. See for more information. This program can be started in the debugger like this:

Trieu Executa Depura el programa en el menú principal o premeu Majúscules 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. See for more information.

# Debug an already running application

The debugger can be used on an already running application.

Per obtenir un diàleg on es mostrin tots els processos que s'estan executant, trieu Executa Depura el procés... en el menú principal.

Select a process in the Attach to process dialog and click on Attach to start the debugger on this process. See for more details.

# Debug a remote application

The debugger can be used to debug an application running on another computer connected through a TCP or serial connection.

Trieu Executa Depura remot... en el menú principal

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.

# Stop the debugger

The debugger and the program can be stopped at any time like this:

Trieu Executa Atura el depurador en el menú principal.