Debugging with the printf debugger
Frank Benoit (keinfarbton)
benoit at tionex.removethispart.de
Fri Feb 16 13:03:41 PST 2007
Debugging in D is a lot of fun :)
I am searching for an idea, how to insert and remove trace statements
quickly.
Is there a trick i can do something like this:
TRC;
TRC; void func(){
TRC; callThis();
TRC; foreach( ....)...
TRC; }
TRC;
Add a very short 'something' at the start of each line. This something
shall do nothing, if not within any function/method, but if in
executable code, it shall print the line number.
Certainly it should not change control flow.
TRC;
TRC; if( condition())
TRC; doAction();
TRC;
Is something like this possible?
More information about the Digitalmars-d
mailing list