Newlisp and debugging

Q&A's, tips, howto's
Locked
jopython
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Newlisp and debugging

Post by jopython »

It becomes really painful to debug newlisp code if we get an error message like follows with no line number and there are 8 instances of the map function in my code :

Code: Select all

ERR: list expected in function map : nil

rickyboy
Posts: 607
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: Newlisp and debugging

Post by rickyboy »

I always get a message like that when I have an error in my code, but I recall always seeing a series of lines that indicate the function call trace and I can always locate the error without line numbers. Are you getting such a call trace?

It looks something like (but not exactly like, because I'm going off of my bad memory) the following.

ERR in call to map
Called in function3
Called in function2
Called in function1

(They're usually longer than this (lame) example.)
(λx. x x) (λx. x x)

jopython
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Re: Newlisp and debugging

Post by jopython »

Unfortunately that is all i got.
Ultimately, I managed to figure out where the issue was. But it took a while.
Thank you for your response.

Locked