ÔÎĵØÖ·£ºhttp://www.phpchina.com/index.php?action-viewthread-tid-105221
FirePHPÊÇʲô£¿
FirePHPÊÇÒ»¸öÀûÓÃFirebug consoleÀ¸Êä³öµ÷ÊÔÐÅÏ¢·½±ã³ÌÐòµ÷ÊÔ¡£
ÕâÒ»ÇÐÖ»ÐèÒªµ÷Óü¸¸ö¼òµ¥µÄº¯Êý¡£
Ëû¿´ÆðÀ´ÊÇÔõô¸öÑù×Ó£¿
<?php FB::log('Log message'); FB::info('Info message'); FB::warn('Warn message'); FB::error('Error message'); ?>
ΪʲôҪÓÃËü£¿
ÔÚ¿ª·¢»·¾³ÏÂÕý³£ÔËÐеijÌÐò·ÅÔÚÉú²ú»·¾³³öÎÊÌâÁË£¡
ÎÒÆÚÍû¿ÉÒÔÔÚÉú²ú»·¾³ÖнøÐÐÐ޸ġ£µ«²»ÆÚÍû¿Í»§¿´µ½ÕâÒ»Çеķ¢Éú¡£
ÇëÑ¡ÔñFirePHP¡£
³£¹æµÄPHPUnitȷʵÄÜ°ïÖú´ó¼Ò½øÐÐ×Ô¶¯»¯²âÊÔ¡£µ«ÎÒÆÚÍû¸üΪֱ¹ÛµÄ½á¹ûÏÔʾ¡£
ÈÃÎÒÖªµÀ³ÌÐòÄÚ·¢ÉúÁËʲô¡£¿´µ½½á¹û°´Ô¼Êä³öÐÄÀï²Å·ÅÐÄ¡£
ÇëÑ¡ÔñFirePHP¡£
³£¹ævar_export()ÏÔʾÔÚÒ³ÃæÉÏ£¬ÆÆ»µÁËÒ³Ãæ½á¹¹£¬Ó°ÏìÁ˽çÃ濪·¢ÈËÔ±µÄ¹¤×÷¡£
ÇëÑ¡ÔñFirePHP¡£
¸ü¶àºÃ´¦µÈ´ýÄúµÄ·¢ÏÖ¡£
¿ªÊ¼ÎÒÃǵÄFirePHPÖ®Âãº
1¡¢È·ÈÏÄú°²×°ÁËFireFox£¨¶ÔFFÓгÖÓÐÆ«¼û£¬µÖÖÆFFµÄ¿ÉÒÔ×ßÁË£©¡£
FireFox£ºhttp://www.mozillaonline.com/
2¡¢È·ÈÏÄú°²×°ÁËFirebug¡£
Firebug£ºhttps://addons.mozilla.org/zh-CN/firefox/addon/1843
3¡¢°²×°FirePHP²å¼þ¡£
FirePHP£ºhttps://addons.mozilla.org/zh-CN/firefox/addon/6149
4¡¢°²×°FirePHP·þÎñÆ÷¶Ë¡£
ÕâÀïÓÐÁ½ÖÖ°²×°·½Ê½Ò»ÖÖͨ¹ýpear°²×°£¬ÁíÒ»ÖÖÖ±½ÓÏÂÔØ´úÂë°ü¡£
ÕâÀィÒéʹÓõڶþÖÖ·½Ê½¡£
·½Ê½Ò» ͨ¹ýpear°²×°£º
pear°²×°·½Ê½Çë²Î¼û NetbeansÐÂÔöPHPUnitÖ§³Ö ÊÔÓÃÊÖ¼Ç http://bbs.phpchina.com/thread-104215-1-1.html
ÒÔÏÂΪFirePHP°²×°ËùÐèÃüÁî¡£
pear channel-discover pear.firephp.org pear install firephp/FirePHPCore·½Ê½¶þ Ö±½ÓÏÂÔØ´úÂë°ü£º
ÏÂÔصØÖ·£º http://www.firephp.org/DownloadR ... y-FirePHPCore-0.2.1
5¡¢·þÎñ¶ËʹÓ÷½Ê½¡£
a¡¢ÒýÈë´úÂë
require_once('FirePHPCore/fb.php'); // ½¨ÒéÒýÈë´ËÎļþ¼´¿É¡£ÎļþĿ¼×ÔÐа²ÅÅ¡£Ê¹ÓÃpear·½Ê½°²×°Ò²ÊÇÕâÑùÒýÈë¡£b¡¢¿ªÆô¿Í»§¶Ë
¿ªÆôFirebug ¿ØÖÆ̨¡¢½Å±¾¡¢ÍøÂç¡£
½«µ±Ç°ÍøÕ¾Ìí¼ÓÈëFirePHPÔÊÐíÕ¾µã£¨Ê®·ÖÈÝÒ××Ô¼ºÊìϤһϾÍÖªµÀÁË£©¡£
b¡¢³£¹æʹÓÃ
<?php include_once('FirePHP/fb.php'); FB::log('Hello World !');¡¡// ³£¹æ¼Ç¼ FB::group('Test Group A'); // ¼Ç¼·Ö×é // ÒÔÏÂΪ°´ÕÕ²»Í¬Àà±ð»òÕßÀàÐͽøÐÐÐÅÏ¢¼Ç¼ FB::log('Plain Message'); FB::info('Info Message'); FB::warn('Warn Message'); FB::error('Error Message'); FB::log('Message','Optional Label'); FB::groupEnd(); FB::group('Test Group B'); FB::log('Hello World B'); FB::log('Plain Message'); FB::info('Info Message'); FB::warn('Warn Message'); FB::error('Error Message'); FB::log('Message','Optional Label'); FB::groupEnd(); // ½«ÐÅÏ¢×÷ΪtableÊä³ö $table[] = array('Col 1 Heading','Col 2 Heading','Col 2 Heading'); $table[] = array('Row 1 Col 1','Row 1 Col 2','Row 1 Col 2'); $table[] = array('Row 2 Col 1','Row 2 Col 2'); $table[] = array('Row 3 Col 1','Row 3 Col 2'); FB::table('Table Label', $table); // ÔÚÒì³£´¦ÀíÖÐʹÓÃFirePHP class MyException extends Exception{ public function __construct($message, $code) { parent::__construct($message, $code); } public function log(){ FB::log($this->getMessage()); } } try{ echo 'MoXie'; throw new MyException('some description',1); }catch(MyException $e){ $e->log(); } ?>²Î¿¼×ÊÁÏ£ºhttp://www.firephp.org/HQ/Use.htm
ÔÎĵØÖ·£ºhttp://www.phpchina.com/index.php?action-viewthread-tid-105221
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ