当前位置: 首页>>代码示例>>C++>>正文


C++ PHPConfigurationData::GetXdebugIdeKey方法代码示例

本文整理汇总了C++中PHPConfigurationData::GetXdebugIdeKey方法的典型用法代码示例。如果您正苦于以下问题:C++ PHPConfigurationData::GetXdebugIdeKey方法的具体用法?C++ PHPConfigurationData::GetXdebugIdeKey怎么用?C++ PHPConfigurationData::GetXdebugIdeKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPConfigurationData的用法示例。


在下文中一共展示了PHPConfigurationData::GetXdebugIdeKey方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PHPXDebugSetupWizardBase

PHPXDebugSetupWizard::PHPXDebugSetupWizard(wxWindow* parent)
    : PHPXDebugSetupWizardBase(parent)
{
    PHPConfigurationData conf;
    conf.Load();
    
    m_textCtrlIP->ChangeValue(conf.GetXdebugHost());
    m_textCtrlKey->ChangeValue(conf.GetXdebugIdeKey());
    m_textCtrlPort->ChangeValue(wxString() << conf.GetXdebugPort());
}
开发者ID:292388900,项目名称:codelite,代码行数:10,代码来源:PHPXDebugSetupWizard.cpp

示例2: OnRecommend

void XDebugDiagDlg::OnRecommend(wxCommandEvent& event)
{
    wxString endOfLine;
#ifdef __WXMSW__
    endOfLine = "\r\n";
#else
    endOfLine = "\n";
#endif
    PHPConfigurationData config;
    config.Load();
    wxString recommendation;
    recommendation << "xdebug.remote_enable=1" << endOfLine
                   << "xdebug.remote_connect_back=1" << endOfLine
                   << "xdebug.ide_key=\"" << config.GetXdebugIdeKey() << "\"" <<endOfLine;
    ::CopyToClipboard(recommendation);
    ::wxMessageBox(_("Recommended settings have been copied to your clipboard\nOpen your php.ini file and paste them"));
    
}
开发者ID:LoviPanda,项目名称:codelite,代码行数:18,代码来源:XDebugDiagDlg.cpp

示例3: DoStartDebugger

void XDebugManager::DoStartDebugger()
{
    wxDELETE( m_readerThread );
    m_readerThread = new XDebugComThread(this, GetPort() );
    m_readerThread->Start();

    // Starting event
    XDebugEvent eventStarting(wxEVT_XDEBUG_SESSION_STARTING);
    EventNotifier::Get()->ProcessEvent( eventStarting );
    
    PHPConfigurationData conf;
    conf.Load();
    if ( !conf.HasFlag(PHPConfigurationData::kDontPromptForMissingFileMapping) && GetFileMapping(PHPWorkspace::Get()->GetActiveProject()).empty() ) {
        // Issue a warning
        wxString message;
        message << _("This project has no file mapping defined. This may result in breakpoints not applied\n")
                << _("To fix this, set file mapping from Project Settings -> Debug");
                
        wxRichMessageDialog dlg(EventNotifier::Get()->TopFrame(), message, "CodeLite", wxICON_WARNING|wxOK|wxOK_DEFAULT|wxCANCEL);
        dlg.ShowCheckBox(_("Remember my answer and don't show this message again"));
        dlg.SetOKCancelLabels(_("OK, Continue to Debug"), _("Stop the debugger"));
        int dlgResult = dlg.ShowModal();
        conf.EnableFlag( PHPConfigurationData::kDontPromptForMissingFileMapping, dlg.IsCheckBoxChecked() ).Save();
        if ( dlgResult == wxID_CANCEL ) {
            // Stop the debugger
            DoStopDebugger();
            return;
        }
    }
    
    // Now we can run the project
    if ( !PHPWorkspace::Get()->RunProject(true, "", conf.GetXdebugIdeKey()) ) {
        DoStopDebugger();
        return;
    }

    // Notify about debug session started
    XDebugEvent eventStart(wxEVT_XDEBUG_SESSION_STARTED);
    EventNotifier::Get()->AddPendingEvent( eventStart );

}
开发者ID:gahr,项目名称:codelite,代码行数:41,代码来源:XDebugManager.cpp


注:本文中的PHPConfigurationData::GetXdebugIdeKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。