Hide Table of Contents

Lisp Debugger

You can debug your Lisp functions using the DraftSight LISP Extension [DSLISP] plugin.

Prerequisites

System Requirements

Setup

  1. Open Visual Studio Code.
  2. From the left sidebar, click Extensions.
  3. In the Search Extensions in Marketplace field, type DraftSight Lisp Extension.
  4. In the list presented, click DraftSight LISP Extension.
  5. In the right panel under DraftSight LISP Extension, click Install.

Debugging

  1. Run DraftSight 2024 or later.
  2. Select Tools > Options > System Options > List Debugger > Enable Debugging.
  3. Click OK.
  4. Restart DraftSight.
  5. From the Visual Studio Code menu, select Run > Add Configuration...
  6. Select DSLISP Debug: Attach.
  7. From the Visual Studio Code menu, select Run > Add Configuration...
  8. Select DSLISP Debug: Launch.
  9. 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.
  10. In Visual Studio Code Explorer (Ctrl + Shift + E), ensure that a Lisp file is selected.
  11. From the left sidebar, click Run and Debug.
  12. 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.
  13. From the left sidebar, select Manage > Settings.
  14. In Extensions > DSLISP > Debug: Launch Program, type the path to your DraftSight executable.
  15. 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.

 

 

 



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Lisp Debugger
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2025 SP2

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.