To Load an LSP File into AutoCAD while Debugging (AutoLISP/VS Code)

When you start debugging, the AutoLISP source (LSP) file in the active editor window is automatically loaded into AutoCAD. However, if you want to load other LSP files open in VS Code, you can load those files by doing the following:

  1. In Visual Studio Code, start debugging an AutoLISP source (LSP) file.
  2. While debugging, activate the editor window containing the LSP file you want to load into AutoCAD.
  3. On the Status Bar, click Load Lisp.


    Note: An LSP file can’t be reloaded after it has already been loaded during a debug session. If you need to make changes to a LSP file that you are currently debugging, stop debugging and make changes to the LSP file before you start a new debug session.
    Tip: If you need to debug multiple LSP files, it is recommended to load those files with the AutoLISP LOAD function in the LSP file that is in the active editor window before starting a new debug session.