コード例 #1
0
ファイル: XDebugManager.cpp プロジェクト: gahr/codelite
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();
}
コード例 #2
0
ファイル: PHPDebugPane.cpp プロジェクト: 05storm26/codelite
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);
    }
}