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

[REBOL] Re: debugging rebol apps

From: g:santilli:tiscalinet:it at: 18-Sep-2000 19:27

Hello [rishi--picostar--com]! On 17-Set-00, you wrote: r> Hi. Since rebol does not have a compiler, I find it a bit more r> difficult to debug large rebApps. Anyone have any debugging r> tips/strategies? Curious how others debug their scripts... Actually, interpreted languages are usually much easier to debug than compiled ones. WRT REBOL, you can add PROBEs to you code to see what happens; this is the method I prefer, but you need to know where to put PROBEs. Sometime you might want to use TRACE, as in: trace on ; piece of code to debug trace off but note that this produces a lot of output. A good advice, that you surely know, is to subdivide you problem into subproblems, and subdivide your code into functions. This way you can debug every function individually at the console, before testing the whole program. HTH, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/