Is debugging python with pydev possible?

Keyboard macros or custom scripts

Is debugging python with pydev possible?

Postby brauart » Wed Aug 05, 2020 10:35 am

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
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
brauart
 
Posts: 14
Joined: Thu Jul 23, 2020 4:31 pm

Re: Is debugging python with pydev possible?

Postby Jurassic Pork » Fri Oct 02, 2020 8:23 am

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.7 , LibreOffice 6.3.6.2 on Windows 10/ LibreOffice 6.4.0 on Centos 8.1
User avatar
Jurassic Pork
 
Posts: 8
Joined: Wed Oct 25, 2017 7:55 am
Location: France

Re: Is debugging python with pydev possible?

Postby brauart » Sun Oct 04, 2020 9:21 pm

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
brauart
 
Posts: 14
Joined: Thu Jul 23, 2020 4:31 pm

Re: Is debugging python with pydev possible?

Postby Jurassic Pork » Thu Oct 08, 2020 2:46 am

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.7 , LibreOffice 6.3.6.2 on Windows 10/ LibreOffice 6.4.0 on Centos 8.1
User avatar
Jurassic Pork
 
Posts: 8
Joined: Wed Oct 25, 2017 7:55 am
Location: France


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 2 guests