summaryrefslogtreecommitdiff
path: root/pyuno/README.md
blob: 95e487706788da78004200d91068a958198c51e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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.
-04-11tdf#94306 replace boost::noncopyable r.. to sdextJochen Nitschke 2016-02-17use consistent #define checks for the Windows platformNoel Grandin 2016-02-16use consistent #define checks for the Windows platformNoel Grandin 2016-02-08cppcheck: noExplicitConstructorCaolán McNamara 2016-01-26fix the new CPPUNIT_TEST_NAME codeMarkus Mohrhard 2016-01-26support unnamed namespaces with CPPUNIT_TEST_NAMEMarkus Mohrhard 2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann 2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann 2015-09-30Fix typosAndrea Gelmini 2015-08-31sal: oops, forgot to commit that bitMichael Stahl 2015-08-31sal: don't use --target as parameter to cppunittesterMichael Stahl 2015-08-31sal: loplugin:stringconstantMiklos Vajna 2015-08-31log resource usage of unit tests on UNX platformsMarkus Mohrhard 2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe 2015-05-09coverity#1297235 Uncaught exceptionCaolán McNamara 2015-04-30provide a way to execute single test case from test suiteMarkus Mohrhard 2015-03-27loplugin:staticfunctionNoel Grandin 2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara 2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini 2014-10-15cppunittester: make tracking down temp file leaks easierMichael Stahl 2014-06-04Keep TestFixture alive until outputter is done with itStephan Bergmann 2014-06-04Cover ctors/dtors of our TestFixtures under the protectors, tooStephan Bergmann 2014-05-28dlclose confuses LeakSanitizerStephan Bergmann 2014-05-24cppunit: always compile with debugging symbols on windows.Michael Meeks 2014-05-20Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHsMichael Meeks 2014-05-06Avoid the annoying line wrappingTor Lillqvist 2014-04-29show the failure message again at the end of the testMarkus Mohrhard 2014-04-24Add a test listener that outputs failures to stderr as they happenTor Lillqvist 2014-04-24Add informative comment about cross-compiling to iOS in particularTor Lillqvist 2014-04-24Avoid possible memory leaks in case of exceptionsTakeshi Abe 2014-04-03Properly cover in #ifdef TIMETESTSStephan Bergmann 2014-03-31Move invariant writes outside loopStephan Bergmann 2014-03-30decorate tempfile name's to help identify leaks' authorNorbert Thiebaud 2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann