• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

demo/H03-May-2022-705389

doc/H03-May-2022-

inc/H07-Oct-2020-329120

qa/pytests/H07-Oct-2020-2,2261,069

source/H03-May-2022-7,9396,227

zipcore/H07-Oct-2020-282208

CustomTarget_python_shell.mkH A D07-Oct-20201.2 KiB3721

CustomTarget_pyuno_pythonloader_ini.mkH A D07-Oct-20201.9 KiB3723

Executable_python.mkH A D07-Oct-2020626 238

IwyuFilter_pyuno.yamlH A D07-Oct-20201,019 3433

Library_pythonloader.mkH A D07-Oct-2020996 4123

Library_pyuno.mkH A D07-Oct-20201.3 KiB5335

Library_pyuno_wrapper.mkH A D07-Oct-20201.7 KiB4917

MakefileH A D07-Oct-2020478 152

Module_pyuno.mkH A D07-Oct-20201.4 KiB6338

Package_python_scripts.mkH A D07-Oct-2020599 207

Package_python_shell.mkH A D07-Oct-2020653 196

Package_pyuno_pythonloader_ini.mkH A D07-Oct-2020601 174

PythonTest_pyuno_pytests_insertremovecells.mkH A D07-Oct-2020679 217

PythonTest_pyuno_pytests_testcollections.mkH A D07-Oct-2020938 2815

PythonTest_pyuno_pytests_testssl.mkH A D07-Oct-2020520 174

READMEH A D07-Oct-2020931 2015

Rdb_pyuno.mkH A D07-Oct-2020477 174

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