本文介绍了xdebug中显示的常量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用phpstorm xdebug和无业游民进行调试.

I'm using phpstorm xdebug and vagrant for debugging.

我以前使用过xdebug,我知道它从来没有显示过常量.但是现在,它在变量窗口中显示了所有已定义的常量,这很烦人,因为其中有很多常量,并且隐藏了真正的变量.

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.

为什么会这样?

phpstorm 7.1.3

phpstorm 7.1.3

xdebug v2.3.0dev

xdebug v2.3.0dev

php 5.3.10

php 5.3.10

推荐答案

这是2.3中的新功能: http://bugs.xdebug.org/view.php?id=406 .但是,大多数IDE将具有不同的窗口/选项卡,用于显示常量在它们自己的上下文"中,如您在 https://github.com/xdebug/xdebug/commit/6ff33fcd4d452a06d4a80b995a5630abd9c11158

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

无论如何,如果您不喜欢该视图,请联系PHPStorm的支持-他们也许可以对此进行改进.

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

这篇关于xdebug中显示的常量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 11:50