sublime text 3 上安装xdebug

本文介绍如何通过修改Xdebug的配置文件来屏蔽不需要的警告信息,如Parse error、Notice等,以提升开发效率。

安装完成之后启动xdebug,缺省设置下会显示warning等信息,很不方便。

可以参考

https://github.com/martomo/SublimeTextXdebug/blob/master/Xdebug.sublime-settings

屏蔽相关信息:

{
     // Break on exceptions, suspend execution
    // when the exception name matches an entry in this list value.
    "break_on_exception": [
        // E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR
        "Fatal error",
        // E_RECOVERABLE_ERROR (since PHP 5.2.0)
        "Catchable fatal error",
        // E_WARNING, E_CORE_WARNING, E_COMPILE_WARNING, E_USER_WARNING
        //"Warning",
        // E_PARSE
        "Parse error",
        // E_NOTICE, E_USER_NOTICE
        //"Notice",
        // E_STRICT
        //"Strict standards",
        // E_DEPRECATED, E_USER_DEPRECATED (since PHP 5.3.0)
        //"Deprecated",
        // 0
        "Xdebug",
        // default
        "Unknown error"
    ]
}

 

转载于:https://www.cnblogs.com/xyuncn/p/4178492.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值