douzhi1937 2016-03-08 10:28 采纳率: 0%
浏览 17

没有通知/警告/错误时调试php

Don't really know how to word this question. I have encountered this problem on several ocassasions. The code does not generate any notice/warniong/error (it just dies) if: 1 I declare the same function name twice 2 I attempt to pass a constant to a by-reference parameter

The debugging can be quite tiresome as I have no idea what caused it and it may be a change made some time ago.

Any thoughts on: How to prevent it? Debugging techniques?

The code is running on a server rather than my own machine. Thanks for any help.

  • 写回答

3条回答 默认 最新

  • douxin20081125 2016-03-08 10:32
    关注

    Use this code for error reporting :

     <?php 
    ini_set("display_errors", "1");
    error_reporting(E_ALL);
     ?>
    
    评论

报告相同问题?