diff --git a/src/plugins/debugger/gdb/pythongdbengine.cpp b/src/plugins/debugger/gdb/pythongdbengine.cpp index 2fd247534a3..24abd720bc5 100644 --- a/src/plugins/debugger/gdb/pythongdbengine.cpp +++ b/src/plugins/debugger/gdb/pythongdbengine.cpp @@ -91,12 +91,13 @@ void GdbEngine::updateLocalsPython(const UpdateParameters ¶ms) watchers += it.key() + "#watch." + QByteArray::number(it.value()); } + const static bool alwaysVerbose = !qgetenv("QTC_DEBUGGER_PYTHON_VERBOSE").isEmpty(); QByteArray options; if (debuggerCore()->boolSetting(UseDebuggingHelpers)) options += "fancy,"; if (debuggerCore()->boolSetting(AutoDerefPointers)) options += "autoderef,"; - if (!qgetenv("QTC_DEBUGGER_PYTHON_VERBOSE").isEmpty()) + if (alwaysVerbose) options += "pe,"; if (options.isEmpty()) options += "defaults,";