Changeset View
Changeset View
Standalone View
Standalone View
debugger/debugsession.h
Show All 36 Lines | |||||
37 | namespace Python { | 37 | namespace Python { | ||
38 | 38 | | |||
39 | struct PdbCommand; | 39 | struct PdbCommand; | ||
40 | 40 | | |||
41 | class DebugSession : public KDevelop::IDebugSession | 41 | class DebugSession : public KDevelop::IDebugSession | ||
42 | { | 42 | { | ||
43 | Q_OBJECT | 43 | Q_OBJECT | ||
44 | public: | 44 | public: | ||
45 | DebugSession(QStringList program, const QUrl& workingDirectory); | 45 | DebugSession(QStringList program, const QUrl& workingDirectory, | ||
46 | const QStringList& environment); | ||||
46 | ~DebugSession() override; | 47 | ~DebugSession() override; | ||
47 | 48 | | |||
48 | IBreakpointController* breakpointController() const override; | 49 | IBreakpointController* breakpointController() const override; | ||
49 | IFrameStackModel* frameStackModel() const override; | 50 | IFrameStackModel* frameStackModel() const override; | ||
50 | 51 | | |||
51 | /** | 52 | /** | ||
52 | * @brief Start the debugger. | 53 | * @brief Start the debugger. | ||
53 | **/ | 54 | **/ | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 214 | private: | |||
215 | IVariableController* m_variableController; | 216 | IVariableController* m_variableController; | ||
216 | IFrameStackModel* m_frameStackModel; | 217 | IFrameStackModel* m_frameStackModel; | ||
217 | KProcess* m_debuggerProcess; | 218 | KProcess* m_debuggerProcess; | ||
218 | IDebugSession::DebuggerState m_state; | 219 | IDebugSession::DebuggerState m_state; | ||
219 | QByteArray m_buffer; | 220 | QByteArray m_buffer; | ||
220 | QStringList m_program; | 221 | QStringList m_program; | ||
221 | QList<PdbCommand*> m_commandQueue; | 222 | QList<PdbCommand*> m_commandQueue; | ||
222 | const QUrl& m_workingDirectory; | 223 | const QUrl& m_workingDirectory; | ||
224 | const QStringList& m_environment; | ||||
223 | private: | 225 | private: | ||
224 | /// objects to notify next | 226 | /// objects to notify next | ||
225 | QPointer<QObject> m_nextNotifyObject; | 227 | QPointer<QObject> m_nextNotifyObject; | ||
226 | const char* m_nextNotifyMethod; | 228 | const char* m_nextNotifyMethod; | ||
227 | /// whether the process is busy processing an internal command | 229 | /// whether the process is busy processing an internal command | ||
228 | bool m_processBusy; | 230 | bool m_processBusy; | ||
229 | 231 | | |||
230 | /** | 232 | /** | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |