I have a website that works pretty well (WAMPServer installation).

I'm having a couple of issues and I'm attempting to determine where, using either echo or var_dump statements

Inserting statements at specific points in my application are not producing any results, but I do know that the code is being executed.

Where should I expect output of these statements to appear? If it isn't appearing, how do I enable these statements to work?

Regards,

Jim P.

noob extrodinare

    How are you viewing the results of calling said file? I'll assume in the browser, in which case you probably want to look in the page source. In most browsers this means right clicking on the page and selecting "View Source" or something similar.

      There's also the [man]error_log/man function which would allow you to send debugging information to PHP's error log rather than to the user (probably most useful if you're trying to debug something in the production environment because you can't reproduce it in a development environment for some reason).

        Derokorian;11038799 wrote:

        How are you viewing the results of calling said file? I'll assume in the browser, in which case you probably want to look in the page source. In most browsers this means right clicking on the page and selecting "View Source" or something similar.

        I have an echo statement

        e.g. echo "Show this value - ".$variable;

        in my code and I am using a web browser to invoke the web page but I am not able to see the "Show this value -" and the $variable contents.

          I've been trying to get to a point where I can determine where my code is not performing as expected.

          Testing a website that is developed and locally hosted using wampserver.

          So far - using echo or var_dump in my code produces nothing. I believe that the problem is occurring on the server side of my application.

          I have spent quite a bit of time downloading and installing Eclipse and the PHP development environment, hoping that I could use that to debug and step through my code.

          Eclipse Standard/SDK

          Version: Kepler Service Release 2
          Build id: 20140224-0627

          and have installed the PDT (PHP Development Tools)

          Still not getting any debug windows to appear.

          I want to use XDEBUG because it is part of the install base of Wampserver.

          I'm obviously missing something, but when I try to run my code in debug mode in Eclipse, it does not display my code in any debug window.

          Help GREATLY appreciated!!

          Regards,

          Jim P.

            Write a Reply...