Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Xdebug #40

Open
scribu opened this issue Oct 23, 2012 · 5 comments
Open

Compatibility with Xdebug #40

scribu opened this issue Oct 23, 2012 · 5 comments

Comments

@scribu
Copy link

scribu commented Oct 23, 2012

Is there any way I can continue to have Xdebug enabled, but use PHP-Error just for error reporting?

@JosephLenton
Copy link
Owner

Is this a question or an issue? It should be working like that by default; PHP Error takes over the error reporting, however xDebug continues to be available for profiling and debugging.

@scribu
Copy link
Author

scribu commented Oct 23, 2012

Then it's an issue, because it doesn't work for me. First I tried changing php.ini and then I tried:

require( 'php_error.php' );
\php_error\reportErrors();

In both cases, error handling is still done by Xdebug.

I'm running PHP 5.4.6 on Ubuntu 12.10.

@demonkoryu
Copy link

Is this perchance an xdebug.show_exception_trace problem, as discussed in composer/composer#989 (comment) ?

@scribu
Copy link
Author

scribu commented Oct 23, 2012

I don't think so; disabling it doesn't have any effect. I'm triggering a mere Notice error anyway.

@druu
Copy link

druu commented Dec 23, 2012

Worked for me without any problem.

Had to make one change though to keep xDebug's pretty var_dump()

See Pull Request #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants