LoginSignup
0

More than 3 years have passed since last update.

var_dump, ddの省略表示を回避する方法

Posted at

デバッグ時のメモ(..)

PHP
$array = ['a', 'b', 'c'];
ini_set('xdebug.var_display_max_children', -1);
ini_set('xdebug.var_display_max_data', -1);
ini_set('xdebug.var_display_max_depth', -1);
dd($array);

表示結果

array:3 [▼
  0 => "a"
  1 => "b"
  2 => "c"
]

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0