` Debugger -- Conditional Breakpoint (Russ Eggen ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Debugger -- Conditional Breakpoint
1999-03-11 -- Russ Eggen
 
The debuggers do not support conditional breakpoints at this time. I have asked for this myself (it would be a great feature!). However, I have found a way to make my conditional breakpoints: code them yourself. Here is how I do it: If SomeBreakCondition x# = MeaninglessValue END This code is harmless, but if you set your breakpoint on the MeaninglessValue line, then when that condition occurs, it executes and the debugger regains focus and you can now inspect your variables. Of course, you have to place this code as close as possible to where you think the code is breaking. You can use as many of these as you wish. I used this method after some long searching to find out why a conversion program failed on a large file. I wanted to find out why record number 400,385 was causing the program to behave incorrectly. I certainly had no need to debug all the process loops 400,384 times! .


Today is November 21, 2024, 3:45 am
This article has been viewed 35196 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: