Support Forum

Allplan 2019 PythonParts Debugging using PTVSD error [Gelöst]

Schlagworte:
  • Allplan 2019
  • PythonParts
  • PTVSD
  • Debug pythonparts visual studio
  • Debuging
  • Error

Hello everyone,
As a short introduction:
I am trying to make a few pythonparts using Visual Studio 2017 and Allplan 2019 and can't make the debugging work.
I tried using Visual Studio 2015 as well as i saw in another topic but nothing changed.

I am using ptvsd 3.2.1 and tried to use the original python environment that is installed with allplan and another one set in program files. (P.S. tried ptvsd 4.2.4 and it wont work with allplan current settings and 3.1.0, nothing changed)
The python version that i am running is 3.6.5.

As you can see in the fist picture (1) the debugging scripts starts to run but right after Allplan stops working and I can't find any process in Visual studio so I can attach the debugger.
I would really appreciate if anyone can help me get out of this issue.

Anhänge (3)

Typ: image/jpeg
38-mal heruntergeladen
Größe: 166,00 KiB
Typ: image/jpeg
35-mal heruntergeladen
Größe: 132,34 KiB
Typ: image/jpeg
47-mal heruntergeladen
Größe: 243,49 KiB

Lösung anzeigen Lösung verbergen

Solved the issue.
You have to use Visual Studio 2017 15.7 not 15.9 and ptvsd 3.2.1.0.

Solved the issue.
You have to use Visual Studio 2017 15.7 not 15.9 and ptvsd 3.2.1.0.

I use Visual Studio 15.7.6 and ptsvd 3.2.1.0 yet I get this error. How did you fix it?

Anhänge (1)

Typ: image/png
36-mal heruntergeladen
Größe: 169,09 KiB

Sometimes it helps if you write specify the ip and port manually instead of using localhost. Try to use PythonParts@127.0.0.1::5678