Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sublimetext3 使用Xdebug调试Sublime Text 3中的PHP_Sublimetext3_Xdebug - Fatal编程技术网

Sublimetext3 使用Xdebug调试Sublime Text 3中的PHP

Sublimetext3 使用Xdebug调试Sublime Text 3中的PHP,sublimetext3,xdebug,Sublimetext3,Xdebug,我刚刚完成了这个设置,我想知道为什么调试器不仅在断点处停止,而且在未定义的变量和不推荐使用的命令处也停止。一切都很好,但不是我现在想要的 如何控制它,使其仅在定义的断点处停止?文件Xdebug.sublime-settings包含控制Xdebug何时应在断点以外的行停止的配置,如下所示: { // Break on exceptions, suspend execution // when the exception name matches an entry in this l

我刚刚完成了这个设置,我想知道为什么调试器不仅在断点处停止,而且在未定义的变量和不推荐使用的命令处也停止。一切都很好,但不是我现在想要的


如何控制它,使其仅在定义的断点处停止?

文件Xdebug.sublime-settings包含控制Xdebug何时应在断点以外的行停止的配置,如下所示:

{
    // 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"
    ],   
} 

啊哈~也许Xdebug.sublime-settings文件就是关键: