Debug php eclipse

I am running a php script using eclipse. when the set breakpoint runs the script, it raises this error.

generate an error, it is obvious that I changed something in the php.ini file. but I don’t know what I need to change to make either zend or xdebug. even I don’t know what is the difference between them. //

after an error

Session cannot be started. To generate debugging information, make sure that the debugger is correctly configured as php.ini directive

+4
source share
2 answers

I ran into this error and my problem turned out to be the wrong Eclipse configuration. In Eclipse, I configured (on Windows> Preferences) "PHP executables", but I did not configure the PHP "Debug" settings. In PHP "Debug" I had to install "PHP Debugger" for XDebug (I had "Zend Debugger" installed). I also had to install "PHP Executable" and switch on "Enable CLI Debugging". I wrote a BLOG post about this (with some screenshots).

+4
source

It is impossible to answer this without additional information about your particular setup. Xdebug has some setup documentation here that can help you get started.

The xdebug configuration settings reference guide (i.e. the lines you want to put in your php.ini) can be found here .

I do not know what I need to change to make either zend or xdebug. even I don’t know what is the difference between them. //

Xdebug is a PHP extension, the zend framework is ... well, the framework. They are completely unconnected. You do not need to change anything in the zend-framework configuration in order to start and run xdebug. Your problem is just PHP (.ini).

Additional Note: If your PHP installation is on Windows, this page can help you a lot. (at least he claims that "how to configure PHP to run Xdebug" - I have not tested it, I do not start Windows)

0
source

All Articles