debugger: make adjustments of breakpoint markers on lines without code optional

This commit is contained in:
hjk
2010-09-21 17:02:41 +02:00
parent 55fe83c291
commit 727c16a690
5 changed files with 30 additions and 3 deletions

View File

@@ -332,6 +332,20 @@ DebuggerSettings *DebuggerSettings::instance()
item->setSettingsKey(debugModeGroup, QLatin1String("UsePreciseBreakpoints"));
instance->insertItem(UsePreciseBreakpoints, item);
item = new SavedAction(instance);
item->setText(tr("Adjust Breakpoint Locations"));
item->setToolTip(tr("Not all source code lines generate "
"executable code. Putting a breakpoint on such a line acts as "
"if the breakpoint was set on the next line that generated code. "
"Selecting 'Adjust Breakpoint Locations' shifts the red "
"breakpoint markers in such cases to the location of the true "
"breakpoint."));
item->setCheckable(true);
item->setDefaultValue(true);
item->setValue(true);
item->setSettingsKey(debugModeGroup, QLatin1String("AdjustBreakpointLocations"));
instance->insertItem(AdjustBreakpointLocations, item);
item = new SavedAction(instance);
item->setText(tr("Break on \"throw\""));
item->setCheckable(true);