forked from qt-creator/qt-creator
debugger: Make "set breakpoint of qFatal" optional
This is mainly a workaround for cases where gdb crashes when setting this breakpoint. It's unclear so far why this happens, but when it happens, the debugger is basically useless, so there should be a way to disable the "bad" feature. Change-Id: I28ede9b38eb8bf56a8c5998088be487b4ee5896d Reviewed-by: con Task-number: QTCREATORBUG-5275 Reviewed-on: http://codereview.qt.nokia.com/1604 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -329,6 +329,14 @@ DebuggerSettings::DebuggerSettings(QSettings *settings)
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnWarning"));
|
||||
insertItem(BreakOnWarning, item);
|
||||
|
||||
item = new SavedAction(this);
|
||||
item->setText(tr("Break on \"qFatal\""));
|
||||
item->setCheckable(true);
|
||||
item->setDefaultValue(true);
|
||||
item->setValue(true);
|
||||
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnFatal"));
|
||||
insertItem(BreakOnFatal, item);
|
||||
|
||||
//
|
||||
// Settings
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user