1. 把PHP.ini 里的 display_errors = On 才可以显示错误位置
2. 习惯使用echo 或者 print 打印
3. 使用注释来屏蔽符号来调试
// ……….
/*………… */
#…………..
4. 看错误信息
评论列表
文章目录