Discussion:
[KPhotoAlbum] Debug code
Robert Krawitz
2017-09-18 03:23:04 UTC
Permalink
I notice in the latest push that the debug code is conditionalized by
#ifdef's. Perhaps it would be desirable to have debugging runtime
conditional (via environment variable or command-line arguments)
rather than having to recompile?
--
Robert Krawitz <***@alum.mit.edu>

*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
Johannes Zarl-Zierl
2017-09-18 18:54:18 UTC
Permalink
Hi Robert,
Post by Robert Krawitz
I notice in the latest push that the debug code is conditionalized by
#ifdef's. Perhaps it would be desirable to have debugging runtime
conditional (via environment variable or command-line arguments)
rather than having to recompile?
You're right. All new KDE code is encouraged to use categorized logging[1].
I've been meaning to educate myself on it and to port to the new paradigm, but
(you guessed it) I didn't have the timeā€¦

Cheers,
Johannes


[1] https://doc.qt.io/qt-5/qloggingcategory.html#details

Loading...