How to debug PHP

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Raunkus2
    Junior Member
    • Jan 2017
    • 2

    How to debug PHP

    In these few php lines, the first and the last lines are executed without any problem, but the middle two lines are ignored as if they are not even there. Any suggestions?
    Code:
    echo "<script type='text/javascript'>alert('Web Site Under Test -- line 440');</script>";
      $tempstr = addslashes($where_sql);
    echo "<script type='text/javascript'>alert('$where_sql -- '".$where_sql."');</script>";
      echo "<script type='text/javascript'>alert('Web Site Under Test -- line 445');</script>";
  • Davidwatson
    Junior Member
    • Mar 2017
    • 2

    #2
    You can use Firephp an add-on to firebug to debug php in the same environment as javascript.

    Comment

    • Davidwatson
      Junior Member
      • Mar 2017
      • 2

      #3
      AccuWeb.Cloud
      The editor enables you to view the contents of files. So when you are debugging, the editor, in combination with the debugger toolbar, provides you with the ability to step through your code during execution in order to see how the contents of your files affect what is happening in a browser.

      Comment

      Working...
      X