You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/languages/lib/debugger/Mainpage.dox

37 lines
1.4 KiB

/**
@mainpage The TDevelop %Debugger Support Library
This library contains classes to implement debugger support for a programming language.
<b>Link with</b>: -llang_debugger
<b>Include path</b>: -I\$(kde_includes)/tdevelop/languages/debugger
\section usingdebugger 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
@ref Debugger class. Your debugger support plugin just need to create
an instance of @ref Debugger class and connect its signals, for example:
@code
m_debugger = new Debugger( partController() );
connect( m_debugger, TQ_SIGNAL(toggledBreakpoint(const TQString &, int)),
debuggerBreakpointWidget, TQ_SLOT(slotToggleBreakpoint(const TQString &, int)) );
connect( m_debugger, TQ_SIGNAL(editedBreakpoint(const TQString &, int)),
debuggerBreakpointWidget, TQ_SLOT(slotEditBreakpoint(const TQString &, int)) );
connect( m_debugger, TQ_SIGNAL(toggledBreakpointEnabled(const TQString &, int)),
debuggerBreakpointWidget, TQ_SLOT(slotToggleBreakpointEnabled(const TQString &, int)) );
@endcode
Then m_debugger instance can be used for example, to jump to the execution point:
@code
m_debugger->gotoExecutionPoint(fileUrl, lineNumber);
@endcode
or to set a breakpoint:
@code
m_debugger->setBreakpoint(fileName, lineNumber, id, enabled, pending);
@endcode
*/