Preparation

To run a PythonParts script with debugging enabled, it’s necessary to install a Python package for the debugging support. The following packages can be used:

  • debugpy 1.4.1 for Allplan 2021-1-6 and higher

  • ptvsd 4.3.1 for Allplan 2021-1-5 and lower

debugpy

debugpy is the replacement for ptvsd and can be found at https://pypi.org/project/debugpy/.

The installation is done with the help of the PythonPart InstallPythonPackage or by following steps below:

  • open https://pypi.org/project/debugpy/

  • select Download files

  • select debugpy-1.4.1.zip from the file list

  • open the downloaded zip file and the folder src

  • copy the folder debugpy to the Allplan folder ..\Prg\Python\lib\site-packages

ptvsd

ptvsd is now deprecated, but it’s needed for Allplan 2021-1-5 and lower.

The installation is done with the help of the PythonPart InstallPythonPackage or by following steps below:

  • open https://pypi.org/project/ptvsd/

  • select Download files

  • select ptvsd-4.3.2.zip from the file list

  • open the downloaded zip file and the folder src

  • copy the folder ptvsd to the Allplan folder ..\Prg\Python\lib\site-packages