eclipsedebuggingeclipse-pdtzend-debugger

Can I link the Zend PDT (eclipse) to a browser action?


Is it possible to configure the Zend PDT debugger in eclipse to hit a breakpoint from a browser action in a similar way to that of the Java debugger for eclipse? I.e. Set a breakpoint, start the debugger, browse a site then drop into a breakpoint when it is hit.

I can debug individual scripts and Web pages however I am trying to debug a script that is called from a webpage. I am using Joomla and want to be able to traverse the dependency stack while click on page content.

Thanks in advance for any advice..!


Solution

  • I found out how to do this but it is quite long winded. It enables you to debug PHP like you debug Java as in you can browser your site and only drop into the debugger when you hit one of your break points. Here's the config for Linux.

    Installing Zend Debugger

    First you will need to install and configure the Zend Debugger:

    Configuring Eclipse

    Next you will have to configure Eclipse:

    http://[local URL path to your project]

    this should be the same URL as in your host config that you use in dev' to get to your home page. Give the config a name and set it as default. Click Finish and OK then restart Eclipse.

    Using the Debugger

    Troubleshooting