Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/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
Php XDebug在捕获异常时停止执行_Php_Visual Studio Code_Xdebug - Fatal编程技术网

Php XDebug在捕获异常时停止执行

Php XDebug在捕获异常时停止执行,php,visual-studio-code,xdebug,Php,Visual Studio Code,Xdebug,我使用的是VSCode+PHP调试扩展,当我调试我的应用程序时,脚本执行会在任何异常时停止,即使它被捕获 分机: XDebug设置 xdebug.remote_autostart=1 xdebug.remote_enable=1 xdebug.show_exception_trace=0 我也遇到了同样的问题,Xdebug几乎在它经历的所有事情上都被阻止了 如果转到VS code的Debug面板,并在底部检查断点部分。禁用通知、异常、所有内容和警告(或任何最适合您的内容) 我基本上不勾选上述

我使用的是VSCode+PHP调试扩展,当我调试我的应用程序时,脚本执行会在任何异常时停止,即使它被捕获

分机:

XDebug设置

xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.show_exception_trace=0

我也遇到了同样的问题,Xdebug几乎在它经历的所有事情上都被阻止了

如果转到VS code的
Debug
面板,并在底部检查
断点
部分。禁用通知、异常、所有内容和警告(或任何最适合您的内容)

我基本上不勾选上述4个设置,这样它只会在断点处停止

设置截图:(不幸的是,SO的图像上传插件似乎不适合我!)

希望这有帮助:)

xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.show_exception_trace=0