Results 1 to 8 of 8

Thread: PHP Graphical Debug

  1. #1
    Join Date
    Nov 2004
    Location
    The Rockies
    Beans
    79
    Distro
    Ubuntu 11.04 Natty Narwhal

    PHP Graphical Debug

    Is anyone out there graphically debugging PHP scripts? I seem unable to get it going. I have installed DBG, and it seems to be installed OK, according to phpinfo(). It seems like PHPEclipse is promising, but I can't seem to get it to work. My coworker is using PHPed on Windows and loves it. There is a Linux version, but a) its $300, b) the demo version doesn't like the version of libstdc that I have.

    Life would be much better with some simple breakpoint, variable analysis graphical debugging. There seem to be several alternatives on Windows, all commercial.

    Any help is much appreciated.

    dm

  2. #2
    Join Date
    Nov 2004
    Location
    Reno
    Beans
    363
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: PHP Graphical Debug

    Honestly, I haven't looked into this much. Alls I need is my print_r() Here
    is a list of a couple little debugging tools that might be of some use.
    dataw0lf
    -
    About Me
    Joshua "stderr / dataw0lf" Simpson, CCIE R&S and Security, RHCE

  3. #3
    Join Date
    Nov 2004
    Location
    The Rockies
    Beans
    79
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: PHP Graphical Debug

    Thanks for the reply. I did finally get eclipse to debug. I will write up a howto and post it soon.

    dm

  4. #4
    Join Date
    Jan 2005
    Beans
    1

    Re: PHP Graphical Debug

    snaga, could you share your wisdom with us?

  5. #5
    Join Date
    Feb 2005
    Beans
    5
    Distro
    Ubuntu

    Post Re: PHP Graphical Debug

    I'm also trying to set up phpeclipse to debug variables and if is possible graphically reproduce a trace.

    Finally I find how to trace, but the browser don't reflect the step changes (it's just a simple url browser). But main trouble now is debuging variables. I get a NullPointer (I always though it's a funny message if you think that Java don't uses pointers )

    Snaga, what about this brief but clear mini-howto

    thanks a lot in advance,

    m.

  6. #6
    Join Date
    Nov 2004
    Location
    The Rockies
    Beans
    79
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: PHP Graphical Debug

    Quote Originally Posted by mbria
    Snaga, what about this brief but clear mini-howto
    My apologies for not getting to this. Too busy debugging at work to get to the forums, I guess.


    Here is a brief how-to. I am doing this from memory, so I may need to edit later when you all find flaws.

    1. Install Eclipse and make it go.

    2. Install PHPEclipse from phpeclipse.de and make it go

    3. Install the dbg debugger as per this link

    iirc it didn't explain that you need to download a command line php interpreter and specify it in the debug setup. I got php4-cgi from synaptic and specified /usr/bin/php4. The debug setup is pretty good to show you what you lack in the setup.

    4. This url explans how to engage the debugger with your browser: Remote Debugging

    Debugging works pretty well. Well enough for me, anyway. One annoyance is that I quite often have to restart the debugger, for seemingly no reason.

    Please respond if these instructions suck. I am considering writing something more complete for the wiki. Let me know if that would be useful.

    dm

  7. #7
    Join Date
    Jan 2005
    Location
    Middle East - Jordan
    Beans
    419
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: PHP Graphical Debug

    I'm not sure about free debuggers, but Zend Studio has great one
    Your freedom is worth more than you think. Take advantage of it while you can.
    I take Ubuntu

  8. #8
    Join Date
    Feb 2005
    Beans
    5
    Distro
    Ubuntu

    Re: PHP Graphical Debug

    Thanks to snaga for your answer.

    I will test (and document) it as soon as I find some spare time.

    Cheers,

    m.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •