Commit 6206dc8b authored by hjk's avatar hjk
Browse files

Debugger: Be more verbose about unhandled breakpoints

Especially for mixed debugging getting the ID explicitly
gives hints which part of the combined engine fails.

Change-Id: Iab4b54d6e9fb8d4afd3df0855861511bc06454c1
Reviewed-by: default avatarFriedemann Kleint <>
parent 5d1bc385
......@@ -193,26 +193,28 @@ void DebuggerRunControl::start()
if (d->m_engine->startParameters().startMode == StartInternal) {
QStringList unhandledIds;
foreach (const BreakpointModelId &id, debuggerCore()->breakHandler()->allBreakpointIds()) {
if (d->m_engine->breakHandler()->breakpointData(id).enabled
&& !d->m_engine->acceptsBreakpoint(id)) {
&& !d->m_engine->acceptsBreakpoint(id))
if (!unhandledIds.isEmpty()) {
QString warningMessage =
DebuggerPlugin::tr("Some breakpoints cannot be handled by the debugger "
"languages currently active, and will be ignored.");
"languages currently active, and will be ignored.\n"
"Affected are breakpoints %1")
.arg(unhandledIds.join(QLatin1String(", ")));
debuggerCore()->showMessage(warningMessage, LogWarning);
static bool checked = true;
if (!checked)
if (checked)
tr("&Show this message again."),
&checked, QDialogButtonBox::Ok);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment