Online Eiffel Documentation |
Documentation Home > Tools > EiffelStudio > EiffelStudio Reference > EiffelStudio Debugger > Breakpoints |
EiffelStudio |
Introduction |
Breakpoints are entities that stop a debugged application. Breakpoints can be put at the beginning of each execution line, so that it is possible to see the context in which the line is executed before executing it.
In EiffelStudio, breakpoints are represented as circles in the left margin of flat views (both feature flat view and class flat view). Breakpoints can be in three different states: enabled ( ), disabled (
), or not set (
). Only enabled breakpoints will stop the application when they are encountered. By default, breakpoints are not set. Disabled breakpoints are useful to temporarily discard a breakpoint, while keeping the possibility to put it back quickly. Enabled and disabled breakpoints can have an associated an associated condition. They are then shown as
and
.
Left-clicking on a breakpoint in a flat view changes the state of the breakpoint: it switches from not set to enabled, from enabled to not set, and from disabled to enabled. Removing a conditional breakpoint discards its condition.
The breakpoint menu lets you change the state of one breakpoint, whereas the breakpoint commands let you change the state of several breakpoints at a time. The breakpoint information command shows the state of all set breakpoints.
Note: Breakpoints cannot be set in all features. In particular, breakpoints cannot be set in external features or attributes.
However, breakpoints can now be set in assertions (require and ensure).
Tip: Under Windows, breakpoints can be set on-the-fly while the application is running.
Copyright 1993-2006 Eiffel Software. All rights reserved. |