chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] stepwise visual execution of functions


From: felix winkelmann
Subject: Re: [Chicken-users] stepwise visual execution of functions
Date: Mon, 5 Nov 2007 09:47:21 +0100

On 11/4/07, Terrence Brannon <address@hidden> wrote:
> After I develop a function, I want to see what happens to the input
> data as it hits each step of the function to make sure it is working
> correctly. For example, in the following function:
>
> (define (mraze a)
>   (let* ([unboxed-a (unbox-array a)]
>          [unboxed-l (array->list unboxed-a)]
>          [item-shapes (map item-shape unboxed-l)]
>          [data-ranks (map my-array-rank unboxed-l)]
>          )
>     (if (all-equal? = item-shapes)
>         (if (<= (apply max data-ranks) 1)
>             (apply rank-1 (flatten (map array-items unboxed-l)))
>             #t)
>         #f)))
>
>
> I would like to pass in a data-item, and then see the value of
> unboxed-a and then step once more and see the value of unboxed-l and
> so on, all the way through the procedure.
>
> Any suggestions for how to visually see what my functions are doing?

You can try the ",step" command in csi.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]