Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
demo/ | H | 03-May-2022 | - | 705 | 389 | |
doc/ | H | 03-May-2022 | - | |||
inc/ | H | 07-Oct-2020 | - | 329 | 120 | |
qa/pytests/ | H | 07-Oct-2020 | - | 2,226 | 1,069 | |
source/ | H | 03-May-2022 | - | 7,939 | 6,227 | |
zipcore/ | H | 07-Oct-2020 | - | 282 | 208 | |
CustomTarget_python_shell.mk | H A D | 07-Oct-2020 | 1.2 KiB | 37 | 21 | |
CustomTarget_pyuno_pythonloader_ini.mk | H A D | 07-Oct-2020 | 1.9 KiB | 37 | 23 | |
Executable_python.mk | H A D | 07-Oct-2020 | 626 | 23 | 8 | |
IwyuFilter_pyuno.yaml | H A D | 07-Oct-2020 | 1,019 | 34 | 33 | |
Library_pythonloader.mk | H A D | 07-Oct-2020 | 996 | 41 | 23 | |
Library_pyuno.mk | H A D | 07-Oct-2020 | 1.3 KiB | 53 | 35 | |
Library_pyuno_wrapper.mk | H A D | 07-Oct-2020 | 1.7 KiB | 49 | 17 | |
Makefile | H A D | 07-Oct-2020 | 478 | 15 | 2 | |
Module_pyuno.mk | H A D | 07-Oct-2020 | 1.4 KiB | 63 | 38 | |
Package_python_scripts.mk | H A D | 07-Oct-2020 | 599 | 20 | 7 | |
Package_python_shell.mk | H A D | 07-Oct-2020 | 653 | 19 | 6 | |
Package_pyuno_pythonloader_ini.mk | H A D | 07-Oct-2020 | 601 | 17 | 4 | |
PythonTest_pyuno_pytests_insertremovecells.mk | H A D | 07-Oct-2020 | 679 | 21 | 7 | |
PythonTest_pyuno_pytests_testcollections.mk | H A D | 07-Oct-2020 | 938 | 28 | 15 | |
PythonTest_pyuno_pytests_testssl.mk | H A D | 07-Oct-2020 | 520 | 17 | 4 | |
README | H A D | 07-Oct-2020 | 931 | 20 | 15 | |
Rdb_pyuno.mk | H A D | 07-Oct-2020 | 477 | 17 | 4 |
README
1UNO bindings for the Python programming language. 2 3To have much joy debugging python extensions you need to: 4 a) edit pythonloader.py in your install setting DEBUG=1 at the top 5 b) touch pyuno/source/module/pyuno_runtime.cxx and 'make debug=true' in pyuno 6 7Then you'll start to see your exceptions on the console instead of them getting 8lost at the UNO interface. 9 10Python also comes with a gdb script 11libpython$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m.so.1.0-gdb.py 12that is copied to instdir and will be auto-loaded by gdb; 13it provides commands like "py-bt" to get a python-level backtrace, 14and "py-print" to print python variables. 15 16Another way to debug Python code is to use pdb: edit some initialization 17function to insert "import pdb; pdb.set_trace()" (somewhere so that it is 18executed early), then run soffice from a terminal and a command-line python 19debugger will appear where you can set python-level breakpoints. 20