Starting to debug

> From: [EMAIL PROTECTED]
> Date: Mon, 27 Dec 1999 14:11:30 +0000
> Subject: [REBOL] [REBOL] Nobody wants to play with me :-( Re:
> X-SELMA: [REBOL] 64359
>
> Thankyou  Daniele,
>   I struggled to find the error but could not.
[...]
>  This is a test for me of whether I have the smarts to
>  do any serious debugging  in Rebol.  So far I fail.

Don't be afraid: this has more to do with console input and ANSI codes than with REBOL.

At this time debugging a whole REBOL script isn't easy, so we'd better divide a script
in smaller parts (e.g. functions). This is a good thing because we can debug each
function separately (and we can reuse them in future scripts being sure that they work
as expected).

To help debugging you could use 'probe or make a function which prints some words or
write/append them to a file, and call that function from different places.

Some things in REBOL work differently from other languages (read the manual and use
'help and 'source or ask in this ML to know this).

Ciao,
Daniele.

Reply via email to