Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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,";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment