how to debug python extensions.

meilin lgh710681042 at gmail.com
Sun Mar 20 13:48:19 UTC 2016


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160320/72077a74/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clipboard.png
Type: image/png
Size: 34147 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160320/72077a74/attachment.png>


More information about the LibreOffice mailing list