Debug changes PHP constants __FILE__ to value "xdebug://debug-eval"

Linux OpenSuse Leap 15.1 PhpStorm 2019.2 PHP 7.2 Xdebug 2.7

The PHP constant __FILE__ is the file path of the current file, unless you are debugging in PhpStorm where its value changes to "xdebug://debug-eval"

Coming from Phped on Windows I never encounter such behavior. It seems Nusphere tackled the misbehavior of Xdebug overwriting PHP constant rendering debugging these constants impossible.

Are there any plans to address this?

0
1 comment

Hi there,

What do you have in Watches when this happens? Screenshots or even better a screencast may help.

Xdebug ticket: https://bugs.xdebug.org/view.php?id=1374

It's not PhpStorm issue but how Xdebug works as other IDEs face the same behaviour (there are quite few questions on StackOverflow, e.g. https://stackoverflow.com/q/21254661).

1

Please sign in to leave a comment.