Page 1 of 1

Is debugging python with pydev possible?

PostPosted: Wed Aug 05, 2020 10:35 am
by brauart
there is an old thread saying external ( i would also accept internal ;-)) python debugging is possible
viewtopic.php?f=45&t=60985&p=269947&hilit=python+debug#p269947

I followed the instructions
  1. put pysrc into OpenOffice/4/user/Scripts/python/pythonpath
  2. put import and pydevd.settrace statements into my little example code
  3. started pydev debug server
but no connect to the debug server occurs when i run my macro, no error too (I verified by starting netcat as a dummy tcp server instead of debug server, there is no connect)

any help or even only the confirmation that debugging with pydev is working for anybody?

regards,
brauart

Re: Is debugging python with pydev possible?

PostPosted: Fri Oct 02, 2020 8:23 am
by Jurassic Pork
hello,
brauart wrote:there is an old thread saying external ( i would also accept internal ;-)) python debugging is possible

internal python debugging in LibreOffice/OpenOffice is possible with the APSO extension

APSO_DebugPythonLO.PNG



Friendly, J.P

Re: Is debugging python with pydev possible?

PostPosted: Sun Oct 04, 2020 9:21 pm
by brauart
Hello J.P

thank you for the info.
Unfortunately the APSO debugger does not seem to be a proper debugger as it does not support breakpoints. Which makes it impossible to debug dialog event handlers and which is what I am looking for.

regards,
brauart

Re: Is debugging python with pydev possible?

PostPosted: Thu Oct 08, 2020 2:46 am
by Jurassic Pork
hello,
i can debug a python script of libreoffice with pydev :
Windows 10 - pydev 8.0 - LibreOffice 6.3 (python 3.5) - pydevd 2.0 - APSO 1.2.6.2
pydevd installed with pip install in pydev.
i can't use breakpoints in events handler. To Debug in the event handler i use mri to see variables.
Not working with OpenOffice 4.1.7 (python 2.7)
screenshots in attachments.
Friendly, J.P