forked from qt-creator/qt-creator
Debugger: Add a "use python dumper" setting
Change-Id: I8bed1a8641e5cf46f50f7c9fced9a1b6c01964ed Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -657,6 +657,7 @@ void CdbEngine::setupInferior()
|
||||
+ " maxStackDepth="
|
||||
+ action(MaximalStackDepth)->value().toString(), NoFlags});
|
||||
|
||||
if (boolSetting(CdbUsePythonDumper))
|
||||
runCommand({"print(sys.version)", ScriptCommand, CB(setupScripting)});
|
||||
|
||||
runCommand({"pid", ExtensionCommand, [this](const DebuggerResponse &response) {
|
||||
|
||||
@@ -182,6 +182,7 @@ CdbOptionsPageWidget::CdbOptionsPageWidget(QWidget *parent)
|
||||
group.insert(action(CdbBreakOnCrtDbgReport), m_ui.breakCrtDbgReportCheckBox);
|
||||
group.insert(action(UseCdbConsole), m_ui.consoleCheckBox);
|
||||
group.insert(action(CdbBreakPointCorrection), m_ui.breakpointCorrectionCheckBox);
|
||||
group.insert(action(CdbUsePythonDumper), m_ui.usePythonDumper);
|
||||
group.insert(action(IgnoreFirstChanceAccessViolation),
|
||||
m_ui.ignoreFirstChanceAccessViolationCheckBox);
|
||||
|
||||
|
||||
@@ -89,6 +89,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="usePythonDumper">
|
||||
<property name="text">
|
||||
<string>Use Python dumper when available</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -226,6 +226,12 @@ DebuggerSettings::DebuggerSettings()
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("BreakpointCorrection"));
|
||||
insertItem(CdbBreakPointCorrection, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("UsePythonDumper"));
|
||||
insertItem(CdbUsePythonDumper, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(false);
|
||||
|
||||
@@ -116,6 +116,7 @@ enum DebuggerActionCode
|
||||
CdbBreakOnCrtDbgReport,
|
||||
UseCdbConsole,
|
||||
CdbBreakPointCorrection,
|
||||
CdbUsePythonDumper,
|
||||
IgnoreFirstChanceAccessViolation,
|
||||
|
||||
// Gdb
|
||||
|
||||
Reference in New Issue
Block a user