Page 1 of 1

Newlisp and debugging

Posted: Sun May 18, 2014 5:41 pm
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

Re: Newlisp and debugging

Posted: Mon May 19, 2014 12:04 am
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.)

Re: Newlisp and debugging

Posted: Mon May 19, 2014 11:40 pm
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.