A period of time before writing a project a base class of more than 5,000 lines, debugging up simply vomiting blood.
Poor thinking is changed, finally found on the internet a good way to debug PHP project. Thank the predecessors for their dedication!
Client:
1. The Firebug is installed.
firebug:https://addons.mozilla.org/zh-cn/firefox/addon/1843
2. Install the firephp plugin.
firephp:https://addons.mozilla.org/zh-cn/firefox/addon/6149
Server-side File download Address: Http://www.firephp.org/DownloadR ... y-firephpcore-0.2.1
A. Introduce code
1 require_once (' firephpcore/fb.php '); It is recommended that you introduce this file. The file directory is self-arranged. Installation using the Pear method is also introduced.
Example:
GetMessage ()); }}try{echo ' MoXie '; throw new MyException (' Some description ', 1);} catch (MyException $e) {$e->log ();}? >