Changeset View
Changeset View
Standalone View
Standalone View
breakpointcontroller.cpp
Context not available. | |||||
26 | 26 | | |||
---|---|---|---|---|---|
27 | #include "debugsession.h" | 27 | #include "debugsession.h" | ||
28 | #include "connection.h" | 28 | #include "connection.h" | ||
29 | #include "debuggerdebug.h" | ||||
29 | 30 | | |||
30 | namespace XDebug { | 31 | namespace XDebug { | ||
31 | BreakpointController::BreakpointController(DebugSession* parent) | 32 | BreakpointController::BreakpointController(DebugSession* parent) | ||
Context not available. | |||||
54 | if (breakpoint->enabled()) { | 55 | if (breakpoint->enabled()) { | ||
55 | QString cmd = m_ids.contains(breakpoint) ? "breakpoint_update" : "breakpoint_set"; | 56 | QString cmd = m_ids.contains(breakpoint) ? "breakpoint_update" : "breakpoint_set"; | ||
56 | QStringList args; | 57 | QStringList args; | ||
57 | qDebug() << "breakpoint kind" << breakpoint->kind(); | 58 | qCDebug(KDEV_PHP_DEBUGGER) << "breakpoint kind" << breakpoint->kind(); | ||
58 | if (breakpoint->kind() == KDevelop::Breakpoint::CodeBreakpoint) { | 59 | if (breakpoint->kind() == KDevelop::Breakpoint::CodeBreakpoint) { | ||
59 | if (m_ids.contains(breakpoint)) { | 60 | if (m_ids.contains(breakpoint)) { | ||
60 | args << "-d " + m_ids[breakpoint]; | 61 | args << "-d " + m_ids[breakpoint]; | ||
Context not available. | |||||
107 | m_ids[breakpoint] = xml.documentElement().attribute("id"); | 108 | m_ids[breakpoint] = xml.documentElement().attribute("id"); | ||
108 | } | 109 | } | ||
109 | if (!xml.documentElement().firstChildElement("error").isNull()) { | 110 | if (!xml.documentElement().firstChildElement("error").isNull()) { | ||
110 | qWarning() << "breakpoint error" << xml.documentElement().firstChildElement("error").text(); | 111 | qCWarning(KDEV_PHP_DEBUGGER) << "breakpoint error" << xml.documentElement().firstChildElement("error").text(); | ||
111 | error(breakpoint, xml.documentElement().firstChildElement("error").text(), KDevelop::Breakpoint::LocationColumn); | 112 | error(breakpoint, xml.documentElement().firstChildElement("error").text(), KDevelop::Breakpoint::LocationColumn); | ||
112 | } | 113 | } | ||
113 | } | 114 | } | ||
Context not available. | |||||
119 | 120 | | |||
120 | void BreakpointController::stateChanged(KDevelop::IDebugSession::DebuggerState state) | 121 | void BreakpointController::stateChanged(KDevelop::IDebugSession::DebuggerState state) | ||
121 | { | 122 | { | ||
122 | qDebug() << state; | 123 | qCDebug(KDEV_PHP_DEBUGGER) << state; | ||
123 | if (state == KDevelop::IDebugSession::StartingState) { | 124 | if (state == KDevelop::IDebugSession::StartingState) { | ||
124 | m_ids.clear(); | 125 | m_ids.clear(); | ||
125 | sendMaybeAll(); | 126 | sendMaybeAll(); | ||
Context not available. |