MantisBT - Xdebug
View Issue Details
0000803XdebugFeature/Change requestpublic2012-03-23 21:302018-01-29 21:51
normaltweakhave not tried
0000803: Add a setting for defining the error levels that xdebug will handle
Please add a configuration entry which defines a custom error_reporting level for xdebug, such that some error levels can be ignored by xdebug, while still being produced by PHP.
Currently, xdebug handles all error levels that are reporting in PHP (error_reporting). This is less than optimal, because stack traces are not only unnecessary for user notices and other informational errors, but also highly intrusive. Producing an 8-line stack trace for every notice causes huge problems when user notices are utilized to provide debugging information.

In my case, I have written a library which uses user notices to provide state information in the processing of the file format it handles, when "verbosity" is enabled. This is done so as not to interfere with the output buffer, which could interfere with the function of the user's script.

Because my library produces upwards of several dozen such notices, and xdebug produces 7 of its own lines (stack trace) for each notice, this means that the debugging output is 8x the intended size, and difficult if not impossible to read through.
No tags attached.
Issue History
2012-03-23 21:30FrozenFireNew Issue
2016-12-10 09:59derickStatusnew => confirmed
2016-12-10 09:59derickTarget Version => 2.6.0dev
2017-12-02 18:35derickTarget Version2.6.0dev => 2.6.0
2018-01-08 16:42derickNote Added: 0004553
2018-01-08 16:42derickAssigned To => derick
2018-01-08 16:42derickStatusconfirmed => feedback
2018-01-16 23:22derickTarget Version2.6.0 =>
2018-01-29 21:51derickNote Added: 0004586

2018-01-08 16:42   
Is this still something you would find good to have? Nobody else requested it in the last 5½ years :-)
2018-01-29 21:51