Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've never used Eclipse to develop in JAVA, but if you are asking about a graphical debugger that allows to set up breakpoints, go through the current stack trace, see content of variables, and all that, there is (at least one) a solution:</p> <p>You can use the <a href="http://xdebug.org/" rel="noreferrer">Xdebug</a> extension, and <a href="http://eclipse.org/pdt/" rel="noreferrer"><strong>Eclipse PDT</strong></a> as IDE : the second one is able to use the first one as debugger, and provides an interface for it -- kind of what you might expect if you have used a visual debugger in other languages/IDE.</p> <p>I've used this combination a couple of times with Drupal, to see what was executed, in which order, how, and all that <em>(not easy to get "by hand", with the hooks mecanism)</em>, and it definitly works pretty well.</p> <p>There are tutorials available on the net that explain how to setup both of those to get the debugger working. For instance :</p> <ul> <li><a href="http://robsnotebook.com/php_debugger_pdt_xdebug" rel="noreferrer">How To Setup a Free PHP Debugger using Eclipse PDT + XDebug</a></li> <li><a href="http://echodittolabs.org/drupal-xdebug-pdt-eclipse" rel="noreferrer">Setting up Eclipse to Debug Drupal with XDebug</a> <em>(unfortunatly, the screenshots are missing)</em></li> <li>Or (in french, but with screenshots ; so, might be helpful evn if not easy to understand) : <ul> <li><a href="http://blog.wampserver.com/index.php/2009/08/28/debugger-avec-wampserver-xdebug-et-pdt/" rel="noreferrer">Débugger avec WampServer, Xdebug et PDT</a></li> <li><a href="http://blog.christophelebot.fr/2008/11/02/configurer-xdebug-eclipse-pdt-serveur-test-distant/" rel="noreferrer">Configurer Xdebug pour Eclipse PDT en utilisant un serveur de test distant</a></li> </ul></li> </ul> <p><br> And here is a screenshot of what it can look like <em>(here, I've set a breakpoint somewhere is the backoffice of Dotclear)</em> :</p> <p><a href="http://extern.pascal-martin.fr/so/eclipse-xdebug-debug-1.png" rel="noreferrer"> http://extern.pascal-martin.fr/so/eclipse-xdebug-debug-1.png </a></p> <p><em>(In theory, clicking on the image should get you to a bigger version)</em></p> <p><br> The icons on top of the windows will allow you to do stuff like :</p> <ul> <li>step by step</li> <li>step in / out of functions / methods</li> </ul> <p>And you can also</p> <ul> <li>see the content of variables <em>(top right of the screenshot)</em></li> <li>have a stack trace showing where you are <em>(top left of the screen shot)</em></li> <li>of course, see were you are in the code <em>(bottom)</em></li> </ul> <p><br> I've also heard that Eclipse PDT can use the Zend Debugger extension instead of Xdebug ; but I've never tried this one.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload