Newlisp and debugging

Q&A's, tips, howto's

Newlisp and debugging

Postby jopython » Sun May 18, 2014 5:41 pm

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
jopython
 
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

Re: Newlisp and debugging

Postby rickyboy » Mon May 19, 2014 12:04 am

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)
rickyboy
 
Posts: 594
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: Newlisp and debugging

Postby jopython » Mon May 19, 2014 11:40 pm

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.
jopython
 
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests