Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error message: "unexpected termination of script, debugging ended", when debugging PHP with Xdebug and Eclipse

I'm getting the following error when debugging:

Error message

php.ini settings:

 xdebug.remote_enable=true
 xdebug.remote_host=localhost
 xdebug.remote_port=9000
 xdebug.remote_handler=dbgp
like image 821
Gainster Avatar asked May 11 '11 09:05

Gainster


2 Answers

Assuming no syntax errors, make sure that you do not have any watches that cause the script to crash as the debugger attempts to evaluate them.

From my experience, this is the most common cause for such early death.

Regardless of that, you may also wish to change your internal web browser, as IE tends to provide cryptic error messages, or use an external browser session (and use remote debugging).

like image 167
MasterAM Avatar answered Oct 12 '22 23:10

MasterAM


removing watch expressions solved this issue for me

like image 34
laurent Avatar answered Oct 12 '22 23:10

laurent