Autocad Lisp Debug Assistant (ALDA) allows fast autocad lisp development by automatic .lsp reloading with referencing support.
- Automatically reload selected directory/indvidual lisp files by detecting changes.
- Reference other .lsp files and reload the entire reference hierarchy.
- .Net Framework 4.5
- Autocad 2017+ (for lower versions, please post an issue).
- Download a release or compile it by yourself and then run the following command:
or pick the dll manually by calling
(command "netload" "Alda.dll" )
netload
. - After loading the .Dll succesfully, you can now call
lspdbg
which will start the GUI.
Create a lisp file, fill the following and add it to the Startup Suite.
(command "netload" "Alda.dll" )
(command "lspdbg" )
Note: There are settings to quicken the startup procedure such as "Load all lisp on startup" or "On debugger startup, start listening automatically".
Lets say we have five files which are referenced in the following order:
In words; A references to C and B; C references to D and E; B references to E.
If it's still hard to undestand, replace the words "references to" to "uses".
Now what happens~:
When A changes then only A will reload.
When C changes then C and A will reload (in that order).
When E changes then C, B and A will reload (in that order).
When D changes then D, C and A will reload (in that order).
Syntax:
;# C:/path/to/file.lsp
;# C:/path/to/filetwo.lsp
or
;# insidethesamefolder.lsp
It can be placed anywhere in the file, but for readability - keep it on top.
Also this causes any comment that starts by ;#
to be a reference marker - so keep in mind to remove any comments with that format.
In order for the reloader to identify all references and reload accordingly, they must be added to watch list.
If the .lsp file is listed, it will continue reloading what any files it knows about.
- Lisp commands API to interact with the debugger from commandline/lisp files.
- Hard Reloading Option - will require to have all references watched in order to reload.
MIT