Debugging with Visual Studio Code¶
After the Python debugging support is started, the PythonPart scripts can be debugged with Visual Studio Code. The following steps must be performed:
Press the Run and Debug button
Select Attach to Allplan from the RUN AND DEBUG combo box
Press the Start Debugging button
After this steps, Visual Studio Code is connected to Allplan and the PythonPart scripts can be debugged with the provided functionality.
Needed settings in Visual Studio Code¶
To get the entry Attach to Allplan, the following tags must exist in the launch.json file or the launch part of the current Visual Studio Code workspace file.
If the PythonPart script CreateVisualStudioCodeWorkspace was executed to create the workspace, these tags are already present.