How to turn off warnings while debugging in VS Code?

…衆ロ難τιáo~ 提交于 2020-01-24 07:54:27

问题


I'm debugging a PHP app in VS Code using XDebug(PHP Debug extension) and getting errors like:

I understand what the problem is and how to fix it, but the solution is so huge, that fixing such an errors is something I can't do at the moment.

I want to start using VS Code for PHP development. I was using Visual Studio with "PHP Tools for Visual Studio" and didn't have this problem.

In the first script which is loaded when the request occurs, I have error_reporting(E_ALL^E_WARNING^E_NOTICE);, which should suppress such an errors. But it seems that the VS Code debugger ignores it. I didn't find any setting for PHP Debug which could help me with this.

Is there any way how to tell VS Code Debugger to ignore/not display such errors?


回答1:


It is possible to set where debugger stops in "Debug / Breakpoints" panel or VS Code:



来源:https://stackoverflow.com/questions/52118284/how-to-turn-off-warnings-while-debugging-in-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!