php eclipse debugging

Gainster picture Gainster · Aug 15, 2010 · Viewed 7.1k times · Source

I am runing a php script using eclipse. when a set breakpoint and run the script it throws me this error.

form the error it is apparent that i have change something the php.ini file. but i dont know what i have to change to make either zend or xdebug. even i dont know what the differnce b/w them.

following the error

The session could not be started. In order to generate debug information, please make sure that the debugger is properly configured as a php.ini directive

Answer

rickumali picture rickumali · Nov 14, 2011

I ran into this error also, and my issue turned out to be a misconfiguration of Eclipse. In Eclipse, I had configured (in Windows > Preferences) the "PHP Executables", but I had not configured the PHP "Debug" settings. In PHP "Debug", I had to set "PHP Debugger" to XDebug (mine was set to "Zend Debugger"). I also had to set the "PHP Executable" and toggle the "Enable CLI Debug". I wrote a BLOG post about this (with some screen shots).