Question

I am trying to isolate the cause of an error. The interpreter give "bad argument type" and a call history of 16 identical lines: <eval> [procedure name] (sexpr). However, this procedure is call from many different places in the program. Is there a way to find out which one of these locations is the source of the problem without going thru the time consuming process of putting print calls in front of each and every possible candidate?

Was it helpful?

Solution

you can use the debug egg and change your procedure to first call trace. Otherwise you could try and compile it with

csc --debug 2 <foo.scm>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top