Debugger Class Reference
Handles signals from the editor that relate to breakpoints and the execution point of the debugger. More...
#include <debugger.h>
Inheritance diagram for Debugger:

Public Member Functions | |
void | setBreakpoint (const QString &fileName, int lineNum, int id, bool enabled, bool pending) |
Controls the breakpoint icon being displayed in the editor through the markinterface. | |
void | gotoExecutionPoint (const KURL &url, int lineNum=-1) |
Displays an icon in the file at the line that the debugger has stoped at. | |
void | clearExecutionPoint () |
Remove the executution point being displayed. | |
Static Public Member Functions | |
Debugger * | getInstance () |
Protected Member Functions | |
Debugger () | |
~Debugger () | |
Private Types | |
enum | MarkType { Bookmark = KTextEditor::MarkInterface::markType01, Breakpoint = KTextEditor::MarkInterface::markType02, ActiveBreakpoint = KTextEditor::MarkInterface::markType03, ReachedBreakpoint = KTextEditor::MarkInterface::markType04, DisabledBreakpoint = KTextEditor::MarkInterface::markType05, ExecutionPoint = KTextEditor::MarkInterface::markType06 } |
Private Slots | |
void | partAdded (KParts::Part *part) |
Whenever a new part is added this slot gets triggered and we then look for a MarkInterfaceExtension part. | |
void | marksChanged () |
Called by the TextEditor interface when the marks have changed position because the user has added or removed source. | |
Private Attributes | |
QValueList< BPItem > | BPList |
Static Private Attributes | |
Debugger * | s_instance = 0 |
Detailed Description
Handles signals from the editor that relate to breakpoints and the execution point of the debugger.We may change, add or remove breakpoints in this class.
Definition at line 59 of file debugger.h.
Member Enumeration Documentation
|
Definition at line 120 of file debugger.h. |
Constructor & Destructor Documentation
|
Definition at line 16 of file debugger.cpp. References partAdded(). |
|
Definition at line 23 of file debugger.cpp. |
Member Function Documentation
|
Remove the executution point being displayed.
Implements KDevDebugger. Definition at line 77 of file debugger.cpp. References ExecutionPoint, KTextEditor::MarkInterface::marks(), and KTextEditor::MarkInterface::removeMark(). Referenced by gotoExecutionPoint(). |
|
Definition at line 27 of file debugger.cpp. References s_instance. Referenced by API::debugger(). |
|
Displays an icon in the file at the line that the debugger has stoped at.
Implements KDevDebugger. Definition at line 98 of file debugger.cpp. References KTextEditor::MarkInterface::addMark(), clearExecutionPoint(), PartController::editDocument(), ExecutionPoint, PartController::getInstance(), gotoExecutionPoint(), and PartController::partForURL(). Referenced by gotoExecutionPoint(). |
|
Called by the TextEditor interface when the marks have changed position because the user has added or removed source. In here we figure out if we need to reset the breakpoints due to these source changes. Definition at line 114 of file debugger.cpp. References BPList, Breakpoint, PartController::getInstance(), KTextEditor::markInterface(), KTextEditor::MarkInterface::marks(), PartController::partForURL(), KURL::path(), and KParts::ReadOnlyPart::url(). Referenced by partAdded(), and setBreakpoint(). |
|
Whenever a new part is added this slot gets triggered and we then look for a MarkInterfaceExtension part. When it is a MarkInterfaceExtension part we set the various pixmaps of the breakpoint icons. Definition at line 185 of file debugger.cpp. References ActiveBreakpoint, KDevDebugger::activeBreakpointPixmap(), Bookmark, Breakpoint, DisabledBreakpoint, KDevDebugger::disabledBreakpointPixmap(), ExecutionPoint, KDevDebugger::executionPointPixmap(), KDevDebugger::inactiveBreakpointPixmap(), marksChanged(), partAdded(), ReachedBreakpoint, KDevDebugger::reachedBreakpointPixmap(), KTextEditor::MarkInterfaceExtension::setDescription(), KTextEditor::MarkInterfaceExtension::setMarksUserChangable(), and KTextEditor::MarkInterfaceExtension::setPixmap(). Referenced by Debugger(), and partAdded(). |
|
Controls the breakpoint icon being displayed in the editor through the markinterface.
Implements KDevDebugger. Definition at line 36 of file debugger.cpp. References ActiveBreakpoint, KTextEditor::MarkInterface::addMark(), BPList, Breakpoint, DisabledBreakpoint, PartController::getInstance(), marksChanged(), PartController::partForURL(), ReachedBreakpoint, KTextEditor::MarkInterface::removeMark(), and setBreakpoint(). Referenced by setBreakpoint(). |
Member Data Documentation
|
Definition at line 130 of file debugger.h. Referenced by marksChanged(), and setBreakpoint(). |
|
Definition at line 14 of file debugger.cpp. Referenced by getInstance(). |
The documentation for this class was generated from the following files:
- src/debugger.h
- src/debugger.cpp