LoginSignup
0
0

More than 5 years have passed since last update.

【PHP】処理順を取得・表示 デバッグ用

Last updated at Posted at 2018-10-31

デバッグ時に使える処理ファイルの探索

debug_backtrace()


$bt = debug_backtrace();
foreach ($bt as $num => $row) {
    $dt[] = [
        $row['file'],
        $row['line']
    ];
}
krsort($dt);
$dt= array_values($dt);
var_dump($dt);
0
0
0

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
0