我想阻止堆栈跟踪出现在我的fatal errors
中。
我的php代码:
throw new ErrorException('Failed here!', 10);
导致:
致命错误:消息" errorexception"与消息" errorexception'失败!"在C: file path file.php中:25堆栈跟踪:#0 c: xampp htdocs sample-integrations site-folder site-folder index.php(18):reaex1 {main}在第25行上扔到C: file path path pary.php
在浏览器中输出。如何删除堆栈跟踪?
这可能是由此https://stackoverflow.com/a/177766961/400114回答的?在Xdebug扩展程序中使用XDebug_disable()函数。
不是理想的,但可能会解决问题!