Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi,

we still have multiple othogonal and confusing debug levels in LibreOffice,
that can interact in funky ways, the most common ones being OSL_DEBUG_LEVEL and
DBG_UTL.

I'd like to propose to consolidate these into _one_ general debug level with no
funky interaction. As such, I'd like to work towards the following (ideally via
Easy Hacks):
- Disable all current code that is enabled by OSL_DEBUG_LEVEL > 1 by enclosing
  them in "#if 0" (or alternatively: triggered by an explicit define for the
  area of code e.g. say DEBUG_SW_LAYOUT)
- Once that is done, make OSL_DEBUG_LEVEL = 2 and DBG_UTL equivalent.

The goal is to have three general debug levels on one axis:
- level 0: release build
- level 1: additional debug code, but binary compatible with level 0 (same
           library interface, comparable to OSL_DEBUG_LEVEL = 1)
- level 2: additional debug code, binary incompatible with level 1 and 2 (aka DBG_UTL)

Everything beyond that should either be "#if 0"'ed or "#ifdef DEBUG_${MODULE}_${AREA}".

Opinions? If there are no objections, I would file Easy Hacks for that.

Best,

Bjoern

Context


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.