`
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! Printed November 23, 2024, 9:17 pm This article has been viewed/printed 35200 times. |