newLISP Fan Club

Forum => newLISP in the real world => Topic started by: jopython on May 18, 2014, 10:41:54 AM

Title: Newlisp and debugging
Post by: jopython on May 18, 2014, 10:41:54 AM
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 :



ERR: list expected in function map : nil
Title: Re: Newlisp and debugging
Post by: rickyboy on May 18, 2014, 05:04:52 PM
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.)
Title: Re: Newlisp and debugging
Post by: jopython on May 19, 2014, 04:40:57 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.