Starta ett program med felsökaren.
Sébastien Granjoux
seb.sfo@free.fr
Philip Chimento
philip.chimento@gmail.com
Daniel Nylander
po@danielnylander.se 2007
Anders Jonsson
anders.jonsson@norsjovallen.se 2017

# Debug a program

# Starta ett program i felsökaren

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. See for more information.

# Debug an already running application

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.

# Felsök ett fjärrprogram

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.

# Stoppa felsökaren

Felsökaren och programmet kan stoppas när som helst på detta vis:

From the main menu, select Run Stop Debugger.