Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

printing debug info

 [1/2] from: patrick::philipot::laposte::net at: 28-Jan-2003 10:39


Hi List As many of us I suppose, I am used to put a lot of 'print in my code for debugging purpose. The problem is how to get rid of them easily and without removing wanted 'print. One way I have found goes like this: debug-print: :print a: ["This is a test" 1 28-01-2003] debug-print [a] And when I want to get rid of these prints, I use the following debug-print: :comment I am wondering if there are better ways and if PREBOL could help here? Regards Patrick

 [2/2] from: greggirwin:mindspring at: 28-Jan-2003 12:57


Hi Pat, p> As many of us I suppose, I am used to put a lot of 'print in p> my code for debugging purpose. The problem is how to get rid p> of them easily and without removing wanted 'print. p> One way I have found goes like this: p> debug-print: :print p> a: ["This is a test" 1 28-01-2003] p> debug-print [a] p> And when I want to get rid of these prints, I use the following p> debug-print: :comment p> I am wondering if there are better ways and if PREBOL could help here? I think what you're doing is a pretty common approach. Even Carl does it. :) With the conditional directives available in PREBOL, I'm sure you could use that as well, to keep things from being included in the final output script, but I haven't done that to know what the simplest way is. -- Gregg