The TDevelop Debugger Support Library
This library contains classes to implement debugger support for a programming language.Link with: -llang_debugger
Include path: -I$(kde_includes)/tdevelop/languages/debugger
Where to use this library
Each debugger support plugin must interact with an editor to set breakpoints, jump to execution points, etc. This kind of interaction is implemented in Debugger class. Your debugger support plugin just need to create an instance of Debugger class and connect its Q_SIGNALS, for example:
m_debugger = new Debugger( partController() );
connect( m_debugger, SIGNAL(toggledBreakpoint(const QString &, int)),
debuggerBreakpointWidget, SLOT(slotToggleBreakpoint(const QString &, int)) );
connect( m_debugger, SIGNAL(editedBreakpoint(const QString &, int)),
debuggerBreakpointWidget, SLOT(slotEditBreakpoint(const QString &, int)) );
connect( m_debugger, SIGNAL(toggledBreakpointEnabled(const QString &, int)),
debuggerBreakpointWidget, SLOT(slotToggleBreakpointEnabled(const QString &, int)) );
Then m_debugger instance can be used for example, to jump to the execution point:
m_debugger->gotoExecutionPoint(fileUrl, lineNumber);
or to set a breakpoint:
m_debugger->setBreakpoint(fileName, lineNumber, id, enabled, pending);