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

[REBOL] Re: printing debug info

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