debugging newlisp scripts

Started by rrq, July 16, 2014, 03:39:40 AM

Previous topic - Next topic

rrq

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">//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.