ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
Komodo
Tutorials
Feature Showcase
Live Projects
Remote Files
Custom Toolbars
Directory Shortcut
Export/Import a Project Package
Filesystem in Project
Custom Keybindings
Custom Template in a Project
Preview Cascading Style Sheets
Simple Snippets
Create a Prompting Snippet
Code Completion Snippet
Break on a Variable Value
Debug an XSLT Program
Fast String Finder
Incremental Searching
The Open/Find Toolbar
Installing Extensions
Using SCC
Google Run Command
Using Interactive Shells
Test a Regular Expression

MyASPN >> Reference >> Komodo >> Tutorials >> Feature Showcase
Komodo documentation

Feature Showcase: Using Conditional Breakpoints


Conditional breakpoints are used to pause the debugger when specific events occur, such as when a variable equals a certain value, an exception occurs, or a function completes execution. This showcase uses a variable in the Perl sample program; on the Start Page, select Open Sample Project, then double-click perl_sample.pl in the Project Manager.

Invoke the Breakpoint Properties dialog box (Debug|Add\Edit Breakpoint).




On the Conditional tab, configure a breakpoint as shown. The break will occur on line 50 when the $sum variable is equal to $11.75.




The breakpoint is displayed on the margin of the program file, and on the Breakpoints tab.




Run the debugger. Execution pauses on line 50, when the $sum variable is equal to $11.75.



Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved