Lisp Debugger
You can debug your Lisp functions using the DraftSight LISP Extension [DSLISP]
plugin.
Prerequisites
System Requirements
Setup
- Open Visual Studio Code.
- From the left sidebar, click Extensions.
- In the Search Extensions in Marketplace field, type DraftSight Lisp
Extension.
- In the list presented, click DraftSight LISP Extension.
- In the right panel under DraftSight LISP Extension, click
Install.
Debugging
- Run DraftSight 2024 or later.
- Select Tools > Options > System Options > List Debugger > Enable
Debugging.
- Click OK.
- Restart DraftSight.
- From the Visual Studio Code menu, select Run > Add
Configuration...
- Select DSLISP Debug: Attach.
- From the Visual Studio Code menu, select Run > Add
Configuration...
- Select DSLISP Debug: Launch.
- From the Visual Studio Code menu, select File > Open File...
to open a Lisp file or File > Open Folder... to open a
folder containing Lisp files.
- In Visual Studio Code Explorer (Ctrl + Shift + E), ensure that a Lisp
file is selected.
- From the left sidebar, click Run and Debug.
- From the Run and Debug menu, select DSLISP Debug: Attach
and click Run (or press F5). The list of all running DraftSight applications appears. Select the process
to debug. On attach, the status bar color at the bottom of Visual
Studio Code changes from blue to orange. LISP files automatically load. You
can run a LISP command in DraftSight and debug the LISP functions.
- From the left sidebar, select Manage > Settings.
- In Extensions > DSLISP > Debug: Launch Program, type the
path to your DraftSight executable.
- From the Run and Debug menu, select DSLISP Debug: Launch
and click Run (or press F5).
When launching DraftSight, the status bar color at the bottom of Visual
Studio Code changes from blue to orange. LISP files automatically load. You
can run a LISP command in DraftSight and debug the LISP functions.