Commit 336c161a authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: cache getenv results



Change-Id: If848c342baddfa9cd0bf47c793222f3bd0ed86e0
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 60526393
......@@ -91,12 +91,13 @@ void GdbEngine::updateLocalsPython(const UpdateParameters &params)
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,";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment