如何让 atom php-debug 显示数组的所有元素?
How to make atom php-debug show all elements of an array?
watchpoints
中只显示了 67 个数组元素中的 31 个
get_class_methods('classname'),只能得到public函数
$class = new ReflectionClass($_brand);
$methods = $class->getMethods();
var_dump($methods);
get_class_methods()
对当前范围敏感,这意味着如果你这样做:
class brand{
public function publicMethod(){}
private function privateMethod(){}
protected function protectedMethod(){}
static function getMethods(){
return get_class_methods(__CLASS__);
}
}
print_r(brand::getMethods());
您将收到 public、私有、受保护和静态方法的完整列表。
如果您在 atom 中使用 xdebug,请检查以下 xdebug 设置:
xdebug.var_display_max_depth
xdebug.var_display_max_children
xdebug.var_display_max_data
另请参阅此 post:How to get xdebug var_dump to show full object/array
atom 中显示的子项数量可能也有限制。
watchpoints
get_class_methods('classname'),只能得到public函数
$class = new ReflectionClass($_brand);
$methods = $class->getMethods();
var_dump($methods);
get_class_methods()
对当前范围敏感,这意味着如果你这样做:
class brand{
public function publicMethod(){}
private function privateMethod(){}
protected function protectedMethod(){}
static function getMethods(){
return get_class_methods(__CLASS__);
}
}
print_r(brand::getMethods());
您将收到 public、私有、受保护和静态方法的完整列表。
如果您在 atom 中使用 xdebug,请检查以下 xdebug 设置:
xdebug.var_display_max_depth
xdebug.var_display_max_children
xdebug.var_display_max_data
另请参阅此 post:How to get xdebug var_dump to show full object/array
atom 中显示的子项数量可能也有限制。