1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Rep Power

    How does one go about debugging PHP?

    How does one go about debugging PHP?

    I have an open source CMS php web site. The template / theme that I have has some issues. I have tried looking online for a solution along the expected and typical paths but they have reached a dead end.

    So I have decided to do it the hard way and actually get into the code and find the error

    Any suggestions on how I should begin?
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Rep Power

    this is pretty vague. What issues? Actual PHP errors? Broken HTML? Unexpected behaviour?

    For general PHP debugging, there's Xdebug. And of course there's the good old var_dump(). But it all depends on the concrete issue.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo