1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#include "XDebugBreakpointCmdHandler.h"
#include "xdebugbreakpointsmgr.h"
#include <file_logger.h>
#include <wx/xml/xml.h>
#include "php_event.h"
#include <event_notifier.h>
#include "xdebugevent.h"
XDebugBreakpointCmdHandler::XDebugBreakpointCmdHandler(XDebugManager* mgr, int transcationId, XDebugBreakpoint &breakpoint)
: XDebugCommandHandler(mgr, transcationId)
, m_breakpoint(breakpoint)
{
}
XDebugBreakpointCmdHandler::~XDebugBreakpointCmdHandler()
{
}
void XDebugBreakpointCmdHandler::Process(const wxXmlNode* response)
{
// Breakpoint assigned successfully (or not)
wxString breakpointId = response->GetAttribute("id");
if ( !breakpointId.IsEmpty() ) {
long bpid(wxNOT_FOUND);
breakpointId.ToCLong( &bpid );
m_breakpoint.SetBreakpointId( bpid );
CL_DEBUG("CodeLite >>> Breakpoint applied successfully. Breakpoint ID: %ld", bpid);
// Refresh the view
XDebugEvent e(wxEVT_XDEBUG_BREAKPOINTS_UPDATED);
EventNotifier::Get()->AddPendingEvent( e );
}
}
|