Unexpected termination of script. Debugging ended. | v.’s Blog

non-expert on expert solutions

Unexpected termination of script. Debugging ended.

This rather comprehensive error message comes from eclipse when a breakpoint is hit while debugging with XDebug web script on a remote server.

It is not that bad as it seems – all I needed to do is remove (watch) Expressions from the list. I don’t really care about the reason this happens – good thing is that it just helps.

This entry was posted in

and tagged , , . Bookmark the .

Thanks for this – I’ve been getting the same problem on and off for a while – it’s good to know how to fix it. However, it’s a bit annoying cause then you have to re-enter your watch expressions to continue debugging. I guess its a debuggerbug


This error messages appears in my case whenever I click on the variables window. If the variables window is visible when I start the debugging, the error message appears right away. When I have the Expressions window selected, everything is fine until I want to see the variables.


Hey FP, did you by any chance resolve your issue?

hi, I have the same issue, but I have not to add any debug expressions, so I don’t know what can I to for this, have you any ideas? thanks!



I had the same issue as FP. Can’t seem to figure out what is going wrong.


anybody resolved this issue? I’m having the same problem with XAMPP 1.7.3 and

php_xdebug-2.2dev-5.3-vc6.dll running PHP Eclipse under Windows 7


Same problem as FP here.

The debugger performs flawlessly until I open the Variables window, then it crashes with the cryptic “unexpected termination of script, debugging ended” message.

I haven’t had any luck yet in figuring out what’s going on.


Same as you guys. Once i open the variable window i get the unexpected error. Anybody tried the Zend debugger ?


Still have the same problems as all of you. So i tried Zend debugger, it works fine!

Some solving ideas?


I am also getting this problem only when I add a watch expression… Please let me know if anyone has resolved this issue. Thanks.


Hi, I had the same problem with the variables view being opened causing the debugger to fail with the cryptic message. I fixed it in a very strange way:

1) I changed the xdebug module from the default that came with xampp (1.7.4) with php_xdebug-2.1.0-5.3-vc6.dll.

2) I also made sure that the path for xdebug in php.ini was relative instead of absolute: zend_extension = \xampp\php\ext\php_xdebug-2.1.0-5.3-vc6.dll;

These two things took me from frustrated axe murderer to prancing unicorn. I’m to scared to mess about with it to determine if it was just the module change or the php.ini change. Hope this helps someone.

I have the same error as FP, please tell me if anyone solve this. I will try to use the Zend Debug. I use the XAMPP 1.7.3 and default

php_xdebug.dll running PHP Eclipse under Windows 7


Had the same problem as FP, but the fixes above did not work.

Running Windows 7


Version: Helios Release

Build id: 20100617-1415

Eclipse IDE for PHP Developers Version


XAMPP 1.7.4

php.ini entry – zend_extension = “\xampp\php\ext\php_xdebug-2.1.2-5.3-vc6.dll”

Java Version 1.6.0_26 from Sun Microsystems Inc.

The solution that worked for me was to uncheck “Show super globals in variable view” found in:

Window->Preferences->PHP->Debug->Installed Debuggers->XDebug

Hope this helps someone.


Thanks Kevin,

that solved the problem here as well. (same environment, same os)


Hi I had the same problem and can confirm that Kevin’s solution helped.

Hey Kevin… THANKS!!! worked.

Win7 x32, WAMP, WordPress on Eclipse

Thanks Kevin, that worked for me as well.. The odd thing, super globals still appear in the variables window…..


What did it for me was to remove the server path mappings in Window > Preferences > Php > Php servers > Default Php Server > Edit > “Path Mapping” tab => remove all entries and it should work.

Thanks for the blog!


thanks a lot, this was driving me mad


Wow thx – that really helped me ; )


Wow , thanks, Vlad solution works! Kevin’s not…


None of these solutions worked for me… Time to downgrade to PHP 5.3/Xdebug 2.1 ?


Thanks for Kevin’s solution!!

First of all thanks to figure out this annoing problem. You don’t need to clear your expressions list, just need to make it invisible or inacitve.(close or hide expressions view by keeping some other view on top).


Same problem here, until today: use Xdebug 2.2.0 (Release date: 2012-05-08)

Seems to work fine, also changing breakpoint properties while debugging is reflected immediately, different than before.

PHP 5.3.10, Apache2, Linux (kubuntu), Eclipse Version: 3.7.2 Build id: M20120208-0800


Hi, had the same problem.

Win7 x32

PHP 5.4 with xdebug


zend_extension = “C:\xampp\php\ext\php_xdebug.dll”









1)Download from

last version Xdebug.

2)Change php.ini

zend_extension = “C:\xampp\php\ext\php_xdebug-2.2.1-5.4-vc9.dll”


3) Apply Vlad solution.

4)Apply Kevin solution.

Uncheck “Show super globals in variable view” found in:

Window->Preferences->PHP->Debug->Installed Debuggers->XDebug

and set

“Max array depth” = 128

“Max childre”=400




I solved this quitting Mozilla as default browser in eclipse.

Leave a Reply

Your email address will not be published.