How do I debug AutoLISP programs?
[3.1] There are some native AutoLISP debuggers: * Visual Lisp by Autodesk and Vital Lisp Professional support it in the IDE (the best), * ACOMP for R10 had one, (free) you can still use it with R12 DOS, but then you’ve got only the R10 LISP functions, i.e. no WCMATCH function, * Ld, AutoLISP Debugger for R14, R13c4 and R12/DOS from CZ, (free) at http://www.cadstudio.cz/ftp.htm See “[5] AutoLISP compilers” [3.2] Modular style, TRACE The best support you can have for debugging is write your code in a well designed, modular style, pulling out distinct tasks into separate functions and then liberally using nested function calls. This will allow you to use the TRACE function as needed to locate any errors. [3.3] You may include BREAK functions and debug-print into your source code. Examples: ;;; Debugging functions (defun break (s) (if *BREAK* (progn (princ “BREAK>> (stop with