tdf#157003: interactive Java unit test debugging

Martin Gube martin.gube at web.de
Fri May 17 10:05:49 UTC 2024


Hi Developers,

I'd like to interactively debug the Java unit test JunitTest_sw_complex
(CheckIndeterminateState.java) for further work on tdf#157003. Can
anyone help me on how to do this?

In case of failing unit tests, the make process output after invoking
"make JunitTest_sw_complex" suggests the following:
"Or to do interactive debugging, run two shells with:
     make debugrun
     make gb_JunitTest_DEBUGRUN=T JunitTest_sw_complex"

However "make gb_JunitTest_DEBUGRUN=T JunitTest_sw_complex" results in a
virtually never ending make process for me. I tried this few times and
canceled it after several hours without visible progress.

Also I tried to run JunitTest_sw_complex inside GDB in different ways,
without success. However, I'm wondering if GDB is able to debug Java [1].
I also tried to use JDB instead of GDB but got stuck with making the
unit test run inside JDB.

Can anyone help me how to interactively debug Java unit tests for
LibreOffice?

Many thanks for your help + best Regards,
Martin

P.S.: please excuse me in case you got this mail twice. I already sent
it yesterday, however it appeared like not properly sent.

[1] https://www.sourceware.org/gdb/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20240517/405b12be/attachment.htm>


More information about the LibreOffice mailing list