Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


basic-library:php-debugbar:1.16

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン 両方とも次のリビジョン
basic-library:php-debugbar:1.16 [2020/03/23 22:03]
y2sunlight [テスト]
basic-library:php-debugbar:1.16 [2020/03/23 22:26]
y2sunlight [php-debugbarについて]
行 29: 行 29:
  
 ===== php-debugbarについて ===== ===== php-debugbarについて =====
 +
 +エラーログと共にデバッグライトはプログラム開発では無くてはならない存在です。var_dump()は変数の中身を
  
 >TODO: >TODO:
行 85: 行 87:
 const DEBUG_MODE = true; const DEBUG_MODE = true;
  
-// デバッグレンダラーの作成+// 標準のデバッグレンダラー(StandardDebugBar)の作成
 // (DebugBar/Resourcesフォルダーは通常、publicフォルダにコピーして使用する方が良い) // (DebugBar/Resourcesフォルダーは通常、publicフォルダにコピーして使用する方が良い)
 $debugbar = new StandardDebugBar(); $debugbar = new StandardDebugBar();
行 118: 行 120:
  
 [{{basic-library:php-debugbar:debug-bar01.png?nolink}}] [{{basic-library:php-debugbar:debug-bar01.png?nolink}}]
-+ 
 +■ 標準のデバッグレンダラーでは以下の表示ができます 
 +  * php ---PHP バージョン番号 
 +  * memory --- メモリ使用量 
 +  * [[http://phpdebugbar.com/docs/base-collectors.html#timedata|time]] --- 総実行時間(または任意の測定結果) 
 +  * [[http://phpdebugbar.com/docs/base-collectors.html#messages|messages]] --- デバッグ出力(debug/info/notice/warning/errorメソッドで出力した値) 
 +  * [[http://phpdebugbar.com/docs/base-collectors.html#requestdata|request]] --- PHPのスーパーグローバル変数($_GET/$_POST/$_COOKIE/$_SERVER) 
 +  * [[http://phpdebugbar.com/docs/base-collectors.html#exceptions|exceptions]] --- 例外表示 
 + 
 +■ デバッグ出力の種類毎にフィルタリングできます。 \\ 
 +■ メッセージをクリックすると変数の展開できます。 
  
  
basic-library/php-debugbar/1.16.txt · 最終更新: 2020/04/18 10:54 by y2sunlight