There are some facilities in Guile for debugging Scheme programs; see the Guile manual (e.g. you can get a backtrace when there is an error, step through code, etcetera).

If you get an error from "cdr", then probably it means that you are passing a number where a list is expected or something like that. (This is the drawback to using a dynamically typed language.)

On Sat, 19 Jan 2008, Manoj Rajagopalan wrote:

Hi Francisco,

  "car" and "cdr" are list-access/manipulation functions in
Lisp/Scheme, if I remember my functional programming correctly. Try
looking up references related to these to understand the error messages.

cheers
Manoj


Francisco Cordobés wrote:
Dear list,

I've been wondering since I started using meep how I can debug a ctl
file, because meep just says that "such procedure" has an error or
something similar and doesn't give a clue about where to find the actual
error(a line number or something like that). When it is an "if"
procedure, I know where to look but now I'm getting "In procedure cdr"
error and I have no idea what that cdr means. I've found no mention to
cdr in Meep reference and I don't know where to look for it. Any idea?

By the way, I use vim, does anyone else uses it and has ctl/scheme files
support? I just get initial and final parenthesis highlighted and I
think it would be easier to work with it if I have full language support.

Thank you, Fco. Cordobés-Aguilar


------------------------------------------------------------------------

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to