THIS IS NO LOBGER MAINTAINED, Please leave me alone.
PHP errors are not good enough for development, it's as simple as that. This aims to solve this.
When an error strikes, the page is replaced with a full stack trace, syntax highlighting, and all displayed to be readable.
If the server errors during an ajax request, then the request is paused, and the error is displayed in the browser. You can then click to automatically retry the last request.
This requires no changes to your JavaScript, and works with existing JS libraries such as jQuery.
To help make development easier, this deliberately makes your code unsafe. External requests are allowed to change your code, it shows more about your site, gives you more info, and makes trivial errors fatal. All of that is awesome if you want to fix bugs in less time, but in production, it is totally unsafe.
seriously, only use this for development!
In case you forget, you can disable this in production using the 'php_error.force_disabled' php.ini option (see below).
<?php
require( 'php_error.php' );
\php_error\reportErrors();
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。