Created
June 17, 2013 06:48
-
-
Save sugarHoge/5795038 to your computer and use it in GitHub Desktop.
デバッグ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include 'ChromePhp.php'; | |
ChromePhp::log('Hello console!'); | |
ChromePhp::log($_SERVER); | |
ChromePhp::warn('something went wrong!'); | |
<?php | |
// demo.php | |
include 'ChromePhp.php'; | |
ChromePhp::log('Hello console!日本語もOK'); | |
ChromePhp::log($_SERVER); // 配列も大丈夫 | |
ChromePhp::info('infoログです'); | |
ChromePhp::warn('warnログです'); | |
ChromePhp::error('errorログです'); | |
ChromePhp::groupCollapsed('MyGroup'); | |
for ($i = 1; $i <= 10; $i++) { | |
ChromePhp::log('log' . $i); | |
} | |
ChromePhp::groupEnd(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once('PhpConsole.php'); | |
PhpConsole::start(true, true, dirname(__FILE__)); | |
debug(“表示内容”); | |
debug(“表示内容”,”ラベル名”); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment