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="
|
+ " maxStackDepth="
|
||||||
+ action(MaximalStackDepth)->value().toString(), NoFlags});
|
+ action(MaximalStackDepth)->value().toString(), NoFlags});
|
||||||
|
|
||||||
|
if (boolSetting(CdbUsePythonDumper))
|
||||||
runCommand({"print(sys.version)", ScriptCommand, CB(setupScripting)});
|
runCommand({"print(sys.version)", ScriptCommand, CB(setupScripting)});
|
||||||
|
|
||||||
runCommand({"pid", ExtensionCommand, [this](const DebuggerResponse &response) {
|
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(CdbBreakOnCrtDbgReport), m_ui.breakCrtDbgReportCheckBox);
|
||||||
group.insert(action(UseCdbConsole), m_ui.consoleCheckBox);
|
group.insert(action(UseCdbConsole), m_ui.consoleCheckBox);
|
||||||
group.insert(action(CdbBreakPointCorrection), m_ui.breakpointCorrectionCheckBox);
|
group.insert(action(CdbBreakPointCorrection), m_ui.breakpointCorrectionCheckBox);
|
||||||
|
group.insert(action(CdbUsePythonDumper), m_ui.usePythonDumper);
|
||||||
group.insert(action(IgnoreFirstChanceAccessViolation),
|
group.insert(action(IgnoreFirstChanceAccessViolation),
|
||||||
m_ui.ignoreFirstChanceAccessViolationCheckBox);
|
m_ui.ignoreFirstChanceAccessViolationCheckBox);
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="usePythonDumper">
|
||||||
|
<property name="text">
|
||||||
|
<string>Use Python dumper when available</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -226,6 +226,12 @@ DebuggerSettings::DebuggerSettings()
|
|||||||
item->setSettingsKey(cdbSettingsGroup, QLatin1String("BreakpointCorrection"));
|
item->setSettingsKey(cdbSettingsGroup, QLatin1String("BreakpointCorrection"));
|
||||||
insertItem(CdbBreakPointCorrection, item);
|
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 = new SavedAction(this);
|
||||||
item->setCheckable(true);
|
item->setCheckable(true);
|
||||||
item->setDefaultValue(false);
|
item->setDefaultValue(false);
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ enum DebuggerActionCode
|
|||||||
CdbBreakOnCrtDbgReport,
|
CdbBreakOnCrtDbgReport,
|
||||||
UseCdbConsole,
|
UseCdbConsole,
|
||||||
CdbBreakPointCorrection,
|
CdbBreakPointCorrection,
|
||||||
|
CdbUsePythonDumper,
|
||||||
IgnoreFirstChanceAccessViolation,
|
IgnoreFirstChanceAccessViolation,
|
||||||
|
|
||||||
// Gdb
|
// Gdb
|
||||||
|
|||||||
Reference in New Issue
Block a user