View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000259 | Xdebug | Uncategorized | public | 2007-04-25 10:41 | 2020-03-12 17:07 |
Reporter | aferber | Assigned To | derick | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0000259: outputs exception backtrace even if exception is caught | ||||
Description | XDebug seems to log a backtrace to the error log even if the exception is caught and handled by the code. This severely degrades functionality for me since for example doctrine (which I'm using) uses exceptions internally for many things, which makes it very difficult to distinguish those internal exceptions from the ones that really matter (ie. uncaught exceptions). IMHO this behaviour should be configurable, and maybe there should be a function that can be called from exceptions handlers to log a backtrace of the exception. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.2.1 | ||||
|
This is already configurable with the "xdebug.show_exception_trace" setting, see the documentation at: http://xdebug.org/docs-settings.php#show_exception_trace (and it defaults to off). However, there have been some versions where this configuration setting did not exist, so you might have to upgrade. |
|
The setting doesn't work for me. I get the following behaviour for different combinations of show_exception_trace and catching/not catching exceptions:
When using the PHP commandline version:
What I want is the behaviour of the apache module version to be the same as the commandline version, ie. log a stack trace if an exception is not caught. The tests were done with the following script: echo "xdebug.show_exception_trace=".ini_get("xdebug.show_exception_trace")."\n";
|
|
Forgot to mention in my last note: The php.ini used was exactly the same in both the apache and commandline tests. Only changes were with regards to the show_exception_trace option. All other xdebug related options are at defaults. Apache LogLevel is "debug". |
|
You'd have to use Xdebug from CVS - I addressed this issue on February 28th. See http://xdebug.org/install.php#source on how do install from CVS. |
Date Modified | Username | Field | Change |
---|---|---|---|
2007-04-25 10:41 | aferber | New Issue | |
2007-04-25 10:51 | derick | Status | new => resolved |
2007-04-25 10:51 | derick | Resolution | open => fixed |
2007-04-25 10:51 | derick | Assigned To | => derick |
2007-04-25 10:51 | derick | Note Added: 0000597 | |
2007-04-25 12:07 | aferber | Status | resolved => feedback |
2007-04-25 12:07 | aferber | Resolution | fixed => reopened |
2007-04-25 12:07 | aferber | Note Added: 0000598 | |
2007-04-25 12:11 | aferber | Note Added: 0000599 | |
2007-04-26 08:55 | derick | Status | feedback => resolved |
2007-04-26 08:55 | derick | Resolution | reopened => fixed |
2007-04-26 08:55 | derick | Note Added: 0000600 | |
2020-03-12 16:56 | derick | Severity | major => feature |
2020-03-12 17:07 | derick | Category | Feature/Change request => Uncategorized |