thinkphp Notes--Open debug debug mode, Thinkphpdebug
Debug+trace mode can see the error message of TP during the development process, which can better help the developer to debug. But the debug mode is not simple to set up in the configuration file can be, after looking for data to explore, find an effective method.
First of all, you've deployed the Thinkphp project directory.
Then note is in the import file Open debug mode, in the Portal file index.php write code define (' App_debug ', true); First delete the runtime directory, and then run it again, you will find that the runtime directory below the ~runtime.php file is not, your debug mode opened successfully
The reason this ~runtime.php file is deleted, this file is compiled file will have cache, so during debugging mode we do not have to worry about the cache caused by other errors
The trace page is also a way for our developers to get the error message, so we need to open the trace page, in the THinkPHp3.0 version of the trace page is not open by default, we need to manually add in the project configuration file
' Show_page_trace ' =>true,//Display page TRACE information
Want to see if the trace information is turned on, as long as we are in the IndexAction.class.php index side
The law adds $this->display ();
Then run it again if you see the following interface that shows your debug mode, as well as the trace and the Open
thinkphp Open Debug Mode On Error
What do you use DW to modify a page property to see that editing is not generally caused by coding problems
thinkphp off debug mode (App_debug = False), resulting in program error, open debug mode, no error, how to solve?
What version of thinkphp
It's all written in the entry file.
Define (' App_debug ', true);
Without the source, God will not save you.
http://www.bkjia.com/PHPjc/833843.html www.bkjia.com true http://www.bkjia.com/PHPjc/833843.html techarticle thinkphp Notes-Open debug debug mode, Thinkphpdebug Debug+trace mode can see the error message of TP during development, can better help the developer Debug. But the debug mode of ...