Difference between revisions of "IDE Window: Breakpoints"

From Free Pascal wiki
m (Filename/Address)
m (Filename/Address)
Line 14: Line 14:
 
== Filename/Address ==
 
== Filename/Address ==
  
Shows the source filename in case of a source breakpoint or the address in case of an address breakpoint (not implemented).
+
Depending on the type of the breakpoint the following is displayed:
 +
;Source Breakpoint
 +
:The name of the file where the breakpoint is set.
 +
;Address Breakpoint
 +
:(not implemented)
 +
:The address of the breakpoint.
 +
:this type of breakpoint is usefull if there is no source available.
  
 
== Line/Length ==
 
== Line/Length ==

Revision as of 23:57, 17 July 2006

Deutsch (de) English (en) русский (ru)



Breakpoint list.png

Important

This page is under construction. It may contain wrong information and must be confirmed/repaired by Marc.

You must setup the debugger and start the project to debug it. Only then the breakpoints are useful.

State

A breakpoint can be enabled or disabled. If it is enabled, then each time the program reaches the breakpoint, the condition is checked and if results true, the action(s) set for the breakpoint will be performed. The following actions are available: Break, Enable/Disable group(s), Log message, Evaluate expression, Ignore/Handle Exceptions. A complete description of these actions can be found on the Breakpoint properties page.

Filename/Address

Depending on the type of the breakpoint the following is displayed:

Source Breakpoint
The name of the file where the breakpoint is set.
Address Breakpoint
(not implemented)
The address of the breakpoint.
this type of breakpoint is usefull if there is no source available.

Line/Length

Shows the position of the breakpoint in the source. If you edit the source, this position can change. For example, if you insert a line in front, the breakpoint will move. But this has no effect the line numbers in the debugging information of the executable. It will still contain the old numbers. So, better stop debugging (i.e. stop the program) before editing.

Condition

Normally a reached breakpoint always stops the program. You can define a condition, which is executed and the program is stopped only, if the condition is met.

Action

Not implemented yet: Normally a breakpoint stops the program. Eventually other actions will be implemented, like enabling other breakpoints or groups.

Pass Count

How many times the enabled breakpoint has been reached.

Group

Not implemented yet: Eventually you can group breakpoints. This allows to quickly enabled/disable several breakpoints at once.