Constants shown in xdebug

我与影子孤独终老i 提交于 2019-12-11 05:28:59

问题


I'm using phpstorm xdebug and vagrant for debugging.

I've used xdebug before and i know that it never showed constants. Now however it shows all defined constants in the variables window which is pretty annoying because there are a lot of them and it hides the true variables.

Any possible idea why this is happening?

phpstorm 7.1.3

xdebug v2.3.0dev

php 5.3.10


回答1:


That's a new feature in 2.3: http://bugs.xdebug.org/view.php?id=406. Most IDEs will however have different windows/tabs for showing the constants as they are in their own "context" as you can see in the patch at https://github.com/xdebug/xdebug/commit/6ff33fcd4d452a06d4a80b995a5630abd9c11158

In any case, if you don't like the view, please contact PHPStorm's support - they might be able to improve on this.



来源:https://stackoverflow.com/questions/25011922/constants-shown-in-xdebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!