xdebug does not display errors by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| xdebug (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
Expected behavior:
Xdebug, when installed, should display detailed error information in the browser window.
Actual behavior:
No error details are displayed. Instead, the web server returns a 500 Internal Server Error.
Details:
The default PHP5 Apache configuration located at /etc/php5/
This can be done by adding a single line to the package file installed to /etc/php5/
display_errors = On
Upon installation, the above config file is installed into PHP's mods-available directory, and it is also symlinked to /etc/php5/
This simple change will allow xdebug to work as expected out-of-the-box.
description: | updated |
Wellu Mäkinen (wellu) wrote : | #1 |
Martin Meredith (mez) wrote : | #2 |
Will not fix. Installing the package does not neccesarily mean you want debug info to show. You may just want a local trace to be saved or similar.
We will not change the users settings in the package install.
Nick Bair (njbair) wrote : | #3 |
Forgot about filing this bug. I agree with Martin that the default behavior is, in fact, sensible. There are use cases for xdebug in a live environment that I did not consider when filing the bug. Thanks.
Changed in xdebug (Ubuntu): | |
status: | New → Won't Fix |
I can confirm this bug and the fix is trivial to make. I could do a patch if someone points me in to right repository for xdebug.