Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Re-enable the --debug switch for all Qt tools
  • Loading branch information
simoninns committed Dec 7, 2025
commit 3d583dbce1f42f097c505b8779fd70f1a85bd32e
7 changes: 7 additions & 0 deletions tools/efm-decoder/libs/efm/src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
************************************************************************/

#include "logging.h"
#include <QLoggingCategory>

// Global for debug output
static bool showDebug = false;
Expand Down Expand Up @@ -119,6 +120,12 @@ void closeDebugFile(void)
void setDebug(bool state)
{
showDebug = state;

// Enable Qt debug logging if debug mode is enabled
// In Qt 5.2+, qDebug() is suppressed by default in release builds
if (state) {
QLoggingCategory::setFilterRules("*.debug=true");
}
}

// Control the quiet flag (if set all output is suppressed)
Expand Down
7 changes: 7 additions & 0 deletions tools/library/tbc/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
************************************************************************/

#include "logging.h"
#include <QLoggingCategory>

// Global for debug output
static bool showDebug = false;
Expand Down Expand Up @@ -114,6 +115,12 @@ void closeDebugFile(void)
void setDebug(bool state)
{
showDebug = state;

// Enable Qt debug logging if debug mode is enabled
// In Qt 5.2+, qDebug() is suppressed by default in release builds
if (state) {
QLoggingCategory::setFilterRules("*.debug=true");
}
}

// Control the quiet flag (if set all output is suppressed)
Expand Down