Skip to content
Snippets Groups Projects
Commit fa2f73aa authored by hjk's avatar hjk
Browse files

debugger: add some helper function to debug breakpoints

parent 5323eee1
No related branches found
No related tags found
No related merge requests found
......@@ -237,6 +237,27 @@ QString BreakpointData::toToolTip() const
return rc;
}
QString BreakpointData::toString() const
{
QString rc;
QTextStream str(&rc);
str << BreakHandler::tr("Marker File:") << markerFileName << ' ';
str << BreakHandler::tr("Marker Line:") << markerLineNumber << ' ';
str << BreakHandler::tr("Breakpoint Number:") << bpNumber << ' ';
str << BreakHandler::tr("Breakpoint Address:") << bpAddress << '\n';
str << BreakHandler::tr("File Name:")
<< fileName << " -- " << bpFileName << '\n';
str << BreakHandler::tr("Function Name:")
<< funcName << " -- " << bpFuncName << '\n';
str << BreakHandler::tr("Line Number:")
<< lineNumber << " -- " << bpLineNumber << '\n';
str << BreakHandler::tr("Condition:")
<< condition << " -- " << bpCondition << '\n';
str << BreakHandler::tr("Ignore Count:")
<< ignoreCount << " -- " << bpIgnoreCount << '\n';
return rc;
}
bool BreakpointData::isLocatedAt(const QString &fileName_, int lineNumber_) const
{
/*
......
......@@ -57,6 +57,7 @@ public:
void removeMarker();
void updateMarker();
QString toToolTip() const;
QString toString() const;
BreakHandler *handler() { return m_handler; }
bool isLocatedAt(const QString &fileName, int lineNumber) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment