Discussion:
trace
(too old to reply)
Felix Lo
2004-07-25 03:59:44 UTC
Permalink
Hi,

I'm wondering why my trace doesn't work
when I try to trace my procedure

(trace procedurename)

i get this.

;While loading "/home/ece251/software/scheme/slib/mklibcat.scm", line 244:
ERROR: Permission denied
ERROR: "OPEN-OUTPUT-FILE couldn't open file "
"/home/ece251/software/scheme/scm/slibcat"

Thanks,

Felix
Tiuley Alguindigue
2004-07-27 20:22:33 UTC
Permalink
Hi ,

I was able to run a trace in kilby today without any problems.
Can you try this simple example ? let me know if you still have problems.

; sum1 sums the elements in a list of numbers

(define sum1
( lambda (L)
( cond
((null? L) 0)
(else (+ (car L) (sum1 (cdr L)) ) )
)

)
)

(trace sum1)
(sum1 '(1 2 3 4))

You should get the following output.

{kilby:10} scm < sum1.scm
#<unspecified>
#<unspecified>
CALL sum1 (1 2 3 4)
CALL sum1 (2 3 4)
CALL sum1 (3 4)
CALL sum1 (4)
CALL sum1 ()
RETN sum1 0
RETN sum1 4
RETN sum1 7
RETN sum1 9
RETN sum1 10
10
Post by Felix Lo
Hi,
I'm wondering why my trace doesn't work
when I try to trace my procedure
(trace procedurename)
i get this.
ERROR: Permission denied
ERROR: "OPEN-OUTPUT-FILE couldn't open file "
"/home/ece251/software/scheme/scm/slibcat"
Thanks,
Felix
Dan Heidinga
2004-07-27 21:08:01 UTC
Permalink
Hi,

I think trace has been fixed for a few days now (Thanks to whoever fixed
it). My guess is that it was a missing or corrupted library
file... Anyways, thanks again to whoever fixed it!

Regards,
Dan
Troy Mark Gonsalves
2004-07-28 15:57:06 UTC
Permalink
Sanjay fixed it the other day.
Post by Dan Heidinga
Hi,
I think trace has been fixed for a few days now (Thanks to whoever fixed
it). My guess is that it was a missing or corrupted library
file... Anyways, thanks again to whoever fixed it!
Regards,
Dan
Felix Lo
2004-07-29 04:22:52 UTC
Permalink
thanks,

finsiehd the assignment already before the trace was fixed :

thanks,
Post by Troy Mark Gonsalves
Sanjay fixed it the other day.
Post by Dan Heidinga
Hi,
I think trace has been fixed for a few days now (Thanks to whoever fixed
it). My guess is that it was a missing or corrupted library
file... Anyways, thanks again to whoever fixed it!
Regards,
Dan
Felix Lo
2004-07-29 04:23:16 UTC
Permalink
thanks, finished the assingment before trace was fixed.

Thanks,
Post by Troy Mark Gonsalves
Sanjay fixed it the other day.
Post by Dan Heidinga
Hi,
I think trace has been fixed for a few days now (Thanks to whoever fixed
it). My guess is that it was a missing or corrupted library
file... Anyways, thanks again to whoever fixed it!
Regards,
Dan
Continue reading on narkive:
Loading...