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

Whoops is not working with Xdebug 3 #682

Closed
PSchwalkowski opened this issue Dec 10, 2020 · 4 comments
Closed

Whoops is not working with Xdebug 3 #682

PSchwalkowski opened this issue Dec 10, 2020 · 4 comments

Comments

@PSchwalkowski
Copy link

Whoops seems to not work well with Xdebug3

Call to undefined function Whoops\Exception\xdebug_is_enabled()

image (1)

I'm using PHP 7.4.9 and this php.ini config

xdebug.mode = default
xdebug.start_with_request = trigger
xdebug.output_dir = "F:\Projects\xampp\tmp"

xdebug.remote_handler = "dbgp"
xdebug.log = "F:\Projects\xampp\tmp\xdebug-php-749.txt"
xdebug.discover_client_host = false
;36000 = 10h
xdebug.remote_cookie_expire_time = 36000
xdebug.max_nesting_level = 400

With Xdebug 2.9 everything is just fine.

@staabm
Copy link
Contributor

staabm commented Dec 10, 2020

I think we should feature detect this with function_exists(..)

@SvenRtbg
Copy link
Contributor

At least the migration guide of Xdebug states that xdebug_is_enabled() is removed in v3 and was never intended to be used in v2 anyways.

https://xdebug.org/docs/upgrade_guide#Changes-to-Functions

@soutorafaelbr
Copy link

soutorafaelbr commented Dec 16, 2020

this commit solves this issue i think

dc30a4c

@denis-sokolov
Copy link
Collaborator

Thanks, @soutorafaelbr, for noticing that it’s already added in #677. @PSchwalkowski, try Whoops 2.9.1 for the workaround!

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

5 participants