Debugger: Fix compilation, centralize breakpoint type detection.

Reviewed-by: hjk
This commit is contained in:
Friedemann Kleint
2010-11-26 13:06:03 +01:00
parent 61e99b3deb
commit a4d7fb2f06
10 changed files with 56 additions and 11 deletions

View File

@@ -1403,6 +1403,15 @@ void DebuggerEngine::showStoppedByExceptionMessageBox(const QString &description
showMessageBox(QMessageBox::Information, tr("Exception Triggered"), msg);
}
bool DebuggerEngine::isCppBreakpoint(const BreakpointParameters &p)
{
// Qml is currently only file
if (p.type != BreakpointByFileAndLine)
return true;
return !p.fileName.endsWith(QLatin1String(".qml"), Qt::CaseInsensitive)
&& !p.fileName.endsWith(QLatin1String(".js"), Qt::CaseInsensitive);
}
} // namespace Debugger
#include "debuggerengine.moc"