• 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 <tdetexteditor/markinterfaceextension.h>
12
13class KDevPartController;
14
21
22class BPItem
23{
24public:
28 BPItem() : m_fileName(""), m_lineNum(0)
29 {}
30
31 BPItem( const TQString& fileName, const uint lineNum)
32 : m_fileName(fileName),
33 m_lineNum(lineNum)
34 {}
35
36 uint lineNum() const { return m_lineNum; }
37 TQString fileName() const { return m_fileName; }
38
39 bool operator==( const BPItem& rhs ) const
40 {
41 return (m_fileName == rhs.m_fileName
42 && m_lineNum == rhs.m_lineNum);
43 }
44
45private:
46 TQString m_fileName;
47 uint m_lineNum;
48};
49
50
56class Debugger : public KDevDebugger
57{
58 TQ_OBJECT
59
60
61public:
62
65// static Debugger *getInstance();
66
78 void setBreakpoint(const TQString &fileName, int lineNum,
79 int id, bool enabled, bool pending);
80
87 void gotoExecutionPoint(const KURL &url, int lineNum=-1);
88
92 void clearExecutionPoint();
93
94// protected:
95
96 Debugger(KDevPartController *partController);
97 ~Debugger();
98
99private slots:
100
107 void partAdded( KParts::Part* part );
108
115 void marksChanged();
116
117private:
118 enum MarkType {
119 Bookmark = KTextEditor::MarkInterface::markType01,
120 Breakpoint = KTextEditor::MarkInterface::markType02,
121 ActiveBreakpoint = KTextEditor::MarkInterface::markType03,
122 ReachedBreakpoint = KTextEditor::MarkInterface::markType04,
123 DisabledBreakpoint = KTextEditor::MarkInterface::markType05,
124 ExecutionPoint = KTextEditor::MarkInterface::markType06
125 };
126
127 static Debugger *s_instance;
128 KDevPartController *m_partController;
129 TQValueList<BPItem> BPList;
130};
131
132#endif
BPItem::BPItem
BPItem()
default ctor - required from TQValueList
Definition debugger.h:28
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

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.15.0
This website is maintained by Timothy Pearson.