Hi all,
currently, configuring with --enable-debug means that dbglevel is set to
2, which in turns means that OSL_DEBUG_LEVEL is set to 2. This enables
all the OSL_ debugging stuff there is (well, maybe there is some really
rare stuff that is only enabled for OSL_DEBUG_LEVEL > 2, but I don't
know about any), which spews unbelievable amount of stuff on stdout.
If we used dbglevel=1 as default, only assertions would be enabled and
the output would be much more manageable (practically nonexistent in
most cases, from my experience). My hope is that more devs would just be
configuring with --enable-debug and using/fixing assertions. The full
debug build would still be easily available: one would just run
build -- dbglevel=2 in the desired module similarly as one runs
build -- debug=true today.
From impl. standpoint: AFAIK this would require one-line change in
solenv/inc/settins.mk .
As an alternative, we could add optional level argument to
--enable-debug or add another option, say, --enable-assertions, that
would do the same thing as --enable-debug and export dbglevel=1 in
addition. Both would require change to configure.in and set_soenv.in (to
export proper dbglevel). I would accept either of these two, but IMHO it
is complicating things too much.
Opinions?
D.
Context
- [Libreoffice] use dbglevel=1 for --enable-debug builds? · David Tardon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.