Hantera brytpunkter.
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

# Brytpunkter

Brytpunkter används för att stoppa körningen av programmet på en specifik punkt så att programmets tillstånd kan utforskas på de platserna.

# Lista brytpunkter

From the main menu, select View Breakpoints to open the Breakpoint window.

Denna vy har följande kolumner:

## Plats

This is the position of the breakpoint in the source file. When the breakpoint is set by the debugger, you can get additional information such as the function containing the breakpoint.

## Adress

This field is filled with the address of the breakpoint when it is set by the debugger.

## Typ

This always displays breakpoint. It will be used in a future release supporting different kinds of breakpoints.

## Villkor

This is the breakpoint condition. It is empty if no condition is defined.

## Pass count

When the debugger is not running, this column displays the pass count of the breakpoint, or zero if it is not defined.

When the debugger is running, if the pass count is zero, this column displays the number of times this breakpoint has been triggered. If the pass count is not zero, both numbers are displayed. The pass count is the second number.

## Tillstånd

Detta är brytpunktens tillstånd. Den kan vara

## Pending:

brytpunkten har inte ställts in i ditt program.

## Permanent:

brytpunkten har ställts in (dess id-nummer visas i parenteser).

## Temporär:

brytpunkten har ställts in men kommer att tas bort om den nås.

All breakpoints are kept across Anjuta sessions even if they correspond to a non-existing locations, for example in a source file of a shared library not loaded yet. In this case their states are set as pending.

# Ställa in brytpunkter

From the main menu, select Debug Add Breakpoint... or right click in the Breakpoint window and select Add Breakpoint....

Fill in the Location, which is the position of the breakpoint, and the other fields if desired. If a file is currently opened in the editor, the Location defaults to the current line. See for more information.

Another solution is to use the toggle breakpoint function. If there is no breakpoint on the current line, it will add one. Otherwise, it will remove it.

From the main menu, select Debug Toggle Breakpoint or right click in the Editor window and select Toggle Breakpoint.

# Redigera brytpunkter

You can't change the location of a breakpoint; create a new breakpoint instead. However, you can change the break condition or the pass count. To edit a breakpoint:

Select a breakpoint in the Breakpoint window.

Right click in the Breakpoint window and select Edit Breakpoint....

Change the Condition or Pass Count fields and click on OK when you are done. See for more information.

# Ta bort brytpunkter

You can remove a breakpoint using the toggle breakpoint function described above. However, if you want to remove more than one breakpoint or the breakpoint is in a different file than the one you are editing, you can use the breakpoint window:

Select a breakpoint in the Breakpoint window.

Right click in the Breakpoint window and select Remove Breakpoint.

För att ta bort alla brytpunkter:

From the main menu, select Debug Remove All Breakpoints or right-click in the Breakpoint window and select Remove All Breakpoints.

# Aktivera och inaktivera brytpunkter

Ibland kan du vilja inaktivera en brytpunkt tillfälligt snarare än att ta bort den helt. För att inaktivera eller åter aktivera en brytpunkt:

Click on the Enable checkmark in the Breakpoint window or right click in the Breakpoint window and select Enable Breakpoint or Disable Breakpoint.

Du kan inaktivera alla brytpunkter genom:

From the main menu, select Debug Disable All Breakpoints or right-click in the Breakpoint window and select Disable All Breakpoints.