Hi meilin,
I use Eclipse and pydev, which works very well on windows. I can inspect
all variables and get error messages.
On Linux pydev freezes my mouse clicks, so that's not much of a help.
Take a look at lines 51 - 62 of this file:
https://github.com/XRoemer/Organon/blob/master/source/py/factory.py
You need to install pydev inside Eclipse.
Start the pydev server.
Set a pd() inside of your code.
Your code should stop at pd() and you can inspect the variables.
Best,
Xaver
Am 20.03.2016 um 14:48 schrieb meilin:
Hi, I have a question that how to debug python extensions. for example
how to debug 4.3.3.2_build/instdir/program/pythonscript.py,
Now i debug the file by write debug information in log.txt, but it's
too trouble.
src/pyuno/README file say that
To have much joy debugging python extensions you need to:
a) edit pythonloader.py in your install setting DEBUG=1 at the top
b) touch pyuno/source/module/pyuno_runtime.cxx and 'make debug=true'
in pyuno
Then you'll start to see your exceptions on the console instead of
them getting lost at the UNO interface.
I have done it like this , but it's useless.
another question
in src/scripting/source/pyprov/pythonscript.py.
why the parameters of out and outindex have not been used.
​waiting for you help, thank you!
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice