How to setup xdebug
"Mauro C." <[email protected]>
| Newsgroups | gmane.comp.ide.eclipse.phpeclipse.devel |
|---|---|
| Message-ID | <[email protected]> |
hi to all, this is how I've setup phpeclipse to work with xdebug. First install xdebug, download source and compile it (remember to use correct php API). modify php.ini to enable xdebug, just add: zend_extension="/path/to/php/extension/xdebug.so" xdebug.remote_autostart = On xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host = 192.168.1.7 ; the IP address of client xdebug.remote_mode = req xdebug.remote_port = 9000 Test if it works with phpinfo(); Download Main branch from CVS or use Team Project from cvs /buld the commit XDebugProxy branch for fragment net.sourceforge.phpeclipse.xdebug.core and net.sourceforge.phpeclipse.xdebug.ui then test it lanching as debug application. phpeclipse Debug configuration: Configure php project with right localhost, document root and php interpreter. open xdebug configuration Run ->Debug... Select a project to debug. remote path of project. ide identification String: mydebugtest for example. mappath localsrc to remote source. set break point. open a browser type the URI and add parameter XDEBUG_SESSION_START=mydebugtest and start to debug ---------------------------------------- it is unstable!!! problem: You cant reopen debug configuration. If the script goes timeout and try to set or remove break point eclipse hang. if there is some problem (error, warning etc) in the script phpeclipse doesnt display variable. to much to do but with a little bit of patience you can debug scripts. Mauro Casciari ps. Tested on: Debian Sarge AMD64 eclipse 3.1.1 java 1.5.0_09 __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Phpeclipse-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/phpeclipse-devel