Debugging 属性中的星号是什么';名称在调试器中的意思是';什么是PhpStorm的视图?
我的代码有一个问题,当我比较上一个工作反转与当前工作反转时,我在PhpStorm的调试输出中看到了这样的差异: 工作版本 非工作版本Debugging 属性中的星号是什么';名称在调试器中的意思是';什么是PhpStorm的视图?,debugging,phpstorm,phpstorm-2017.2,Debugging,Phpstorm,Phpstorm 2017.2,我的代码有一个问题,当我比较上一个工作反转与当前工作反转时,我在PhpStorm的调试输出中看到了这样的差异: 工作版本 非工作版本 在PhpStorm的调试输出中,*MyType*myProperty和justmyProperty之间有什么区别?刚刚带着同样的问题来到这里,发现了您的问题 经过一些调查,我相信这些标记了类实例的私有属性 以Symfony的修改类为例: namespace Symfony\Component\EventDispatcher; class EventDispatc
在PhpStorm的调试输出中,
*MyType*myProperty
和justmyProperty
之间有什么区别?刚刚带着同样的问题来到这里,发现了您的问题
经过一些调查,我相信这些标记了类实例的私有属性
以Symfony的修改类为例:
namespace Symfony\Component\EventDispatcher;
class EventDispatcher implements EventDispatcherInterface
{
private $listeners = array();
private $sorted = array();
public $foo = array();
protected $bar = array();
}
调试和查看$this
的属性时,它将包含以下内容:
*Symfony\Component\EventDispatcher\EventDispatcher*sorted
*Symfony\Component\EventDispatcher\EventDispatcher*listeners
foo
bar
namespace Symfony\Component\EventDispatcher;
class EventDispatcher implements EventDispatcherInterface
{
private $listeners = array();
private $sorted = array();
public $foo = array();
protected $bar = array();
}
*Symfony\Component\EventDispatcher\EventDispatcher*sorted
*Symfony\Component\EventDispatcher\EventDispatcher*listeners
foo
bar