Is debugging python with pydev possible?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
brauart
Posts: 14
Joined: Thu Jul 23, 2020 4:31 pm

Is debugging python with pydev possible?

Post 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&hil ... ug#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
Last edited by MrProgrammer on Sat Aug 22, 2020 6:38 pm, edited 1 time in total.
Reason: Changed subject, was: Is debugging python possible
OpenOffice 4.1.7 on Windows 10
User avatar
Jurassic Pork
Posts: 24
Joined: Wed Oct 25, 2017 7:55 am
Location: France

Re: Is debugging python with pydev possible?

Post 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
OpenOffice 4.1.14 , LibreOffice 7.6.2.1 on Windows 11/ LibreOffice 7.3.7 on Lubuntu 22.04
brauart
Posts: 14
Joined: Thu Jul 23, 2020 4:31 pm

Re: Is debugging python with pydev possible?

Post 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
OpenOffice 4.1.7 on Windows 10
User avatar
Jurassic Pork
Posts: 24
Joined: Wed Oct 25, 2017 7:55 am
Location: France

Re: Is debugging python with pydev possible?

Post 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
Attachments
mri-2.PNG
pydev-1.PNG
pydev-2.PNG
OpenOffice 4.1.14 , LibreOffice 7.6.2.1 on Windows 11/ LibreOffice 7.3.7 on Lubuntu 22.04
Post Reply