• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Debugger Support Library
 

KDevelop Debugger Support Library

  • languages
  • lib
  • debugger
debugger.h
1#ifndef __DEBUGGER_H__
2#define __DEBUGGER_H__
3
4#include <tqvaluelist.h>
5
6#include "kdevdebugger.h"
7
8#include <tdeparts/part.h>
9#include <tdetexteditor/markinterface.h>
10
11#include <tdeversion.h>
12#include <tdetexteditor/markinterfaceextension.h>
13
14class KDevPartController;
15
23class BPItem
24{
25public:
29 BPItem() : m_fileName(""), m_lineNum(0)
30 {}
31
32 BPItem( const TQString& fileName, const uint lineNum)
33 : m_fileName(fileName),
34 m_lineNum(lineNum)
35 {}
36
37 uint lineNum() const { return m_lineNum; }
38 TQString fileName() const { return m_fileName; }
39
40 bool operator==( const BPItem& rhs ) const
41 {
42 return (m_fileName == rhs.m_fileName
43 && m_lineNum == rhs.m_lineNum);
44 }
45
46private:
47 TQString m_fileName;
48 uint m_lineNum;
49};
50
51
57class Debugger : public KDevDebugger
58{
59 TQ_OBJECT
60
61
62public:
63
66// static Debugger *getInstance();
67
79 void setBreakpoint(const TQString &fileName, int lineNum,
80 int id, bool enabled, bool pending);
81
88 void gotoExecutionPoint(const KURL &url, int lineNum=-1);
89
93 void clearExecutionPoint();
94
95// protected:
96
97 Debugger(KDevPartController *partController);
98 ~Debugger();
99
100private slots:
101
108 void partAdded( KParts::Part* part );
109
116 void marksChanged();
117
118private:
119 enum MarkType {
120 Bookmark = KTextEditor::MarkInterface::markType01,
121 Breakpoint = KTextEditor::MarkInterface::markType02,
122 ActiveBreakpoint = KTextEditor::MarkInterface::markType03,
123 ReachedBreakpoint = KTextEditor::MarkInterface::markType04,
124 DisabledBreakpoint = KTextEditor::MarkInterface::markType05,
125 ExecutionPoint = KTextEditor::MarkInterface::markType06
126 };
127
128 static Debugger *s_instance;
129 KDevPartController *m_partController;
130 TQValueList<BPItem> BPList;
131};
132
133#endif
BPItem
Describes a single breakpoint in the system.
Definition debugger.h:24
BPItem::BPItem
BPItem()
default ctor - required from TQValueList
Definition debugger.h:29
Debugger
Handles signals from the editor that relate to breakpoints and the execution point of the debugger.
Definition debugger.h:58
Debugger::clearExecutionPoint
void clearExecutionPoint()
Remove the executution point being displayed.
Definition debugger.cpp:78
Debugger::gotoExecutionPoint
void gotoExecutionPoint(const KURL &url, int lineNum=-1)
Displays an icon in the file at the line that the debugger has stoped at.
Definition debugger.cpp:99
Debugger::setBreakpoint
void setBreakpoint(const TQString &fileName, int lineNum, int id, bool enabled, bool pending)
Controls the breakpoint icon being displayed in the editor through the markinterface.
Definition debugger.cpp:37
KDevDebugger
Base class to handle signals from the editor that relate to breakpoints and the execution point of th...
Definition kdevdebugger.h:35

KDevelop Debugger Support Library

Skip menu "KDevelop Debugger Support Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Debugger Support Library

Skip menu "KDevelop Debugger Support Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Debugger Support Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.