Beispiel #1
0
void XDebugManager::DoRefreshBreakpointsMarkersForEditor(IEditor* editor)
{
    CHECK_PTR_RET( editor );
    editor->GetSTC()->MarkerDeleteAll(smt_breakpoint);

    XDebugBreakpoint::List_t bps;
    m_breakpointsMgr.GetBreakpointsForFile(editor->GetFileName().GetFullPath(), bps);
    XDebugBreakpoint::List_t::const_iterator iter = bps.begin();
    for( ; iter != bps.end(); ++iter ) {
        editor->GetSTC()->MarkerAdd( iter->GetLine()-1, smt_breakpoint );
    }
}
Beispiel #2
0
void XDebugManager::OnDeleteAllBreakpoints(PHPEvent& e)
{
    e.Skip();
    
    // Delete them from XDebug
    const XDebugBreakpoint::List_t &bps = m_breakpointsMgr.GetBreakpoints();
    XDebugBreakpoint::List_t::const_iterator iter = bps.begin();
    for( ; iter != bps.end(); ++iter ) {
        if ( iter->IsApplied() ) {
            DoDeleteBreakpoint( iter->GetBreakpointId() );
        }
    }
    
    // Delete them from the manager
    m_breakpointsMgr.DeleteAllBreakpoints();
}
Beispiel #3
0
void PHPDebugPane::OnRefreshBreakpointsView(XDebugEvent& e)
{
    e.Skip();
    LexerConf::Ptr_t lex = EditorConfigST::Get()->GetLexer("php");
    if(lex) {
        m_dvListCtrlBreakpoints->SetFont(lex->GetFontForSyle(wxSTC_HPHP_DEFAULT));
        m_dvListCtrlStackTrace->SetFont(lex->GetFontForSyle(wxSTC_HPHP_DEFAULT));
    }

    // Load the breakpoints table
    m_dvListCtrlBreakpoints->DeleteAllItems();
    const XDebugBreakpoint::List_t& bps = XDebugManager::Get().GetBreakpointsMgr().GetBreakpoints();
    XDebugBreakpoint::List_t::const_iterator iter = bps.begin();
    for(; iter != bps.end(); ++iter) {
        wxVector<wxVariant> cols;
        cols.push_back(wxString() << iter->GetBreakpointId());
        cols.push_back(iter->GetFileName());
        cols.push_back(wxString() << iter->GetLine());
        m_dvListCtrlBreakpoints->AppendItem(cols);
    }
}