forked from qt-creator/qt-creator
debugger: cache getenv results
Change-Id: If848c342baddfa9cd0bf47c793222f3bd0ed86e0 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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,";
|
||||
|
||||
Reference in New Issue
Block a user