This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/ref/xcad/docs/extensions/debugging/index.md
2022-10-15 19:16:08 +02:00

1.2 KiB

title caption description order
Debugging SOLIDWORKS add-ins with xCAD.NET Debugging Instructions on debugging add-ins for SOLIDWORKS developed using xCAD.NET 4

SOLIDWORKS add-ins are in-process applications hosted within the sldworks.exe process.

When debugging SOLIDWORKS add-ins it is recommended to specify the full path to the SOLIDWORKS executable for the Start external program option in the project settings under the Debug tab.

Setting path to SOLIDWORKS as external program{ width=600 }

In this case it is possible to launch SOLIDWORKS and attach to the process automatically directly form Visual Studio by calling Start command or clicking F5

To attach to the running SOLIDWORKS instance use the Debug->Attach To Process... command

Attach to running process

and select SLDWORKS.exe process form the list

Attaching to SLDWORKS.exe process{ width=600 }

In addition, xCAD.NET framework allows to debug original source code directly from the nuge package via Source Link. See Debugging xCAD.NET Source Code article for more information of how to enable Source Link.