New users ask the old question: What is PHP code used for debugging? What tools are used for PHP code debugging? Var_dump & nbsp; is there any simpler way to use var_dump? I am a newbie. please be sure to give a detailed answer. Thank you very much. ------ Solution ------------------ 1. check the error log. 2. the new user asks the old question: What is PHP code used for debugging?
What tools are used for PHP code debugging? I have mentioned var_dump on the Internet, but I don't know how to use it. is there any simpler method?
I am a newbie. please be sure to give a detailed answer. Thank you very much.
------ Solution --------------------
1. check the error log, which is also the most direct
2. forcibly intercept var_dump (); exit;
3. php debug
------ Solution --------------------
Echo/print_r/var_dump () are commonly used.
Then enable the php error prompt function.
------ Solution --------------------
Always use
Echo'
';
Print_r ($ var );
How can this problem be solved?
------ Solution --------------------
Debugging ?? I don't know what development tool you are using. beginners use notepad to run the written webpage. if it is not the desired result, you can echo it to the simplest! In general, the SQL statement will write an error, so you can echo the SQL statement and put the result in the database for running to see where there is a mistake.