How to use mysqli::debug and mysqli_report() to jointly debug PHP programs to improve debugging efficiency and accuracy?
Debugging database operations is one of the most critical links when developing PHP applications. Especially when applications rely on MySQL databases, it is particularly important to troubleshoot query errors and optimize database interactions. PHP provides two powerful tools to help developers better debug MySQL database interactions: mysqli::debug() and mysqli_report().
mysqli::debug