But why don't you just write a debug (or trace) function that you can call. The debug function should print out whatever message it's given, but only if the debug flag is set. You could even make it OO, and make the debug flag a member of the Trace object. Or whatever you want to call it. Then you can do whatever you want in the debug method, including printing out numbered messages, and also printing out caller information, if you want.
In reply to Re: Line Numbers
by btrott
in thread Line Numbers
by Adam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |