debugging newlisp scripts

Q&A's, tips, howto's
Locked
ralph.ronnquist
Posts: 228
Joined: Mon Jun 02, 2014 1:40 am
Location: Melbourne, Australia

debugging newlisp scripts

Post by ralph.ronnquist »

I'm fairly sure I'm not alone in having some one or two or even more than a few "teething problems" whenever I'm writing a new newlisp script. Or maybe I am, since I've been unable to find much to assist in this, and the built-in error messages are quite terse.

In any case, I've augmented my public collection of newlisp utilites with a "debug.lsp" module, at http://www.realthing.com.au/files/newlisp/debug.lsp.

It's is a batch oriented debugging facility to help in finding where the bug (the next bug) is by selective tracing. It thus helps in particular for the script loading and start up, and then a bit into the program logic; in particular helping to pin-point where the data type and nil versus () mistakes are when they turn up.

Locked