XDebug在被捕获的异常处暂停执行

问题描述:

我正在使用VSCode + PHP Debug扩展,并且当我调试我的应用程序时,脚本执行在任何异常时都暂停,即使它已被捕获。XDebug在被捕获的异常处暂停执行

enter image description here

扩展:https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug

{ 
    "version": "0.2.0", 
    "configurations": [ 

     { 
      "name": "Listen for XDebug", 
      "type": "php", 
      "request": "launch", 
      "port": 9000 
     }, 
     { 
      "name": "Launch currently open script", 
      "type": "php", 
      "request": "launch", 
      "program": "${file}", 
      "cwd": "${fileDirname}", 
      "port": 9000 
     } 
    ] 
} 

XDebug的设置

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

我也有同样的问题被停止了在几乎所有的Xdebug它经历。

如果您转到面板的VS代码,并在底部检查Breakpoints部分。禁用通知,例外,一切和警告(或任何最适合您的)。

我基本上保持前面提到的4个设置未被选中,以便它只会停在我的断点处。

截图的设置:Imgur(不幸的是,SO的图片上传插件似乎并没有为我工作!)

希望这有助于:)