office-gobmx/pyuno
Noel Grandin 7f91e4a982 loplugin:stringadd in oox..pyuno
after my patch to merge the bufferadd loplugin into stringadd

Change-Id: I5fdc0a33923fe00e7b588f4576607515a93e5c13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-27 11:04:46 +00:00
..
demo Remove unused imports from pyuno/demo and pyuno/qa 2023-01-02 09:37:00 +00:00
doc
inc
qa/pytests Remove unused imports from pyuno/demo and pyuno/qa 2023-01-02 09:37:00 +00:00
source loplugin:stringadd in oox..pyuno 2023-03-27 11:04:46 +00:00
zipcore
CustomTarget_python_shell.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
CustomTarget_pyuno_pythonloader_ini.mk GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
Executable_python.mk Add version resource to executables where it was missing 2019-08-31 00:22:28 +02:00
IwyuFilter_pyuno.yaml Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
Library_pythonloader.mk Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Library_pyuno.mk Give PyUNO structs/exceptions their own separate type 2015-07-30 05:55:32 +00:00
Library_pyuno_wrapper.mk pyuno: Revert 5589c72b88 2013-07-08 12:18:09 +02:00
Makefile
Module_pyuno.mk
Package_python_scripts.mk
Package_python_shell.mk
Package_pyuno_pythonloader_ini.mk Extract python-only pythonloader.uno ini-file into its own Package 2014-11-26 17:21:12 +01:00
PythonTest_pyuno_pytests_insertremovecells.mk
PythonTest_pyuno_pytests_testcollections.mk
PythonTest_pyuno_pytests_testssl.mk renamed ssl test to testssl 2019-04-02 07:50:59 +02:00
Rdb_pyuno.mk
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00

Python UNO Bindings

UNO bindings for the Python programming language.

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.

Python also comes with a gdb script libpython$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m.so.1.0-gdb.py that is copied to instdir and will be auto-loaded by gdb; it provides commands like py-bt to get a Python-level backtrace, and py-print to print Python variables.

Another way to debug Python code is to use pdb: edit some initialization function to insert import pdb; pdb.set_trace() (somewhere so that it is executed early), then run soffice from a terminal and a command-line Python debugger will appear where you can set Python-level breakpoints.