| Using Flex Builder 2 > Programming Flex Applications > Running and Debugging Applications > Debugging your applications > Adding and removing breakpoints | |||
You use breakpoints to suspend the execution of your application so that you can inspect your code and use the Flex Builder debugging tools to explore options for fixing errors. You add breakpoints in the code editor and then manage them in the Breakpoints view when you're debugging your applications.
You add breakpoints to executable lines of code. The debugger stops only at breakpoints set on lines that contain the following:
<mx:Button click="dofunction()" ...><mx:Script> tag or in an ActionScript fileYou can set breakpoints as you're coding or while you're debugging.
The marker bar is along the left edge of the code editor.
A breakpoint marker is added to the marker bar and to the list of breakpoints in the Breakpoints view of the Flex Debugging perspective.
When the debugger encounters a breakpoint, the application is suspended, the debugging perspective is displayed, and the line of code marked with a breakpoint is highlighted in the code editor. You then use the debugging commands to interact with the code. (See Managing the debugging session in the Debug view).
The breakpoint is removed from the marker bar and the Breakpoints view of the Flex Debugging perspective.
You manage breakpoints in the Breakpoints view. You can remove one or all breakpoints in the list or disable them and re-enable them at a later time (see Managing breakpoints in the Breakpoints view).
Flex 2.01