Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug: Unexpected termination of script(Webpage Won't Load)
xdebug: Unexpected termination of script [message #758862] Thu, 24 November 2011 19:44 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 11
Registered: December 2010
Location: Torrance, CA
Junior Member
When I attempt to start a remote debug session using xdebug in Eclipse Indigo the Firefox browser attempts to load a page at the URL such as:
h t t p ://192.0.43.10/froxlor/index.php/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13221583538751

But the expected page does not load. When it times out a message box opens in Eclipse titled "Debugger Error" with this error message:
Unexpected termination of script

I am attempting to step through PHP code being executed on a remote Debian 5 server with Linux Kernel version 2.6.18-028stab094.3. Xdebug was installed using aptitude. The machine where I have Eclipse running has Windows XP. My Windows XP machine is connected to the Internet through a router. The router has my machine in its Demilitarized Zone.

In Eclipse I have no break points or expressions set. While the page load is timing out I get these lines in response to a "netstat -bo" command in the Windows XP command prompt:
  TCP    STEPHEN-DESKTOP:9000   example.com:60253  ESTABLISHED     1776
  [eclipse.exe]

  TCP    STEPHEN-DESKTOP:9000   example.com:60242  FIN_WAIT_1      1776
  [eclipse.exe]

These are the relevant portions of what is output by the phpinfo() function:
PHP Version 5.2.6-1+lenny13

System 	Linux example.com 2.6.18-028stab094.3 #1 SMP Thu Sep 22 12:47:37 MSD 2011 x86_64
Build Date 	Jul 1 2011 15:59:10
Server API 	CGI/FastCGI
Virtual Directory Support 	disabled
Configuration File (php.ini) Path 	/etc/php5/cgi
Loaded Configuration File 	/etc/php5/cgi/php.ini
Scan this dir for additional .ini files 	/etc/php5/cgi/conf.d
additional .ini files parsed 	/etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/ioncube-loader-5.2.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/pdo_sqlite.ini, /etc/php5/cgi/conf.d/sqlite.ini, /etc/php5/cgi/conf.d/suhosin.ini, /etc/php5/cgi/conf.d/xdebug.ini, /etc/php5/cgi/conf.d/xsl.ini
PHP API 	20041225
PHP Extension 	20060613
Zend Extension 	220060519
Debug Build 	no
Thread Safety 	disabled
Zend Memory Manager 	enabled
IPv6 Support 	enabled
Registered PHP Streams 	zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports 	tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters 	string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

This server is protected with the Suhosin Patch 0.9.6.2
Copyright (c) 2006 Hardened-PHP Project

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd., and
    with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
    with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

xdebug
xdebug support	enabled
Version 	2.0.3

Supported protocols	Revision
DBGp - Common DeBuGger Protocol 	$Revision: 1.125.2.4 $
GDB - GNU Debugger protocol 	$Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol 	$Revision: 1.22 $

Directive	Local Value	Master Value
xdebug.auto_trace	Off	Off
xdebug.collect_includes	On	On
xdebug.collect_params	0	0
xdebug.collect_return	Off	Off
xdebug.collect_vars	Off	Off
xdebug.default_enable	On	On
xdebug.dump.COOKIE	no value	no value
xdebug.dump.ENV	no value	no value
xdebug.dump.FILES	no value	no value
xdebug.dump.GET	no value	no value
xdebug.dump.POST	no value	no value
xdebug.dump.REQUEST	no value	no value
xdebug.dump.SERVER	no value	no value
xdebug.dump.SESSION	no value	no value
xdebug.dump_globals	On	On
xdebug.dump_once	On	On
xdebug.dump_undefined	Off	Off
xdebug.extended_info	On	On
xdebug.idekey	no value	no value
xdebug.manual_url	h t t p ://www.php.net	h t t p ://www.php.net
xdebug.max_nesting_level	100	100
xdebug.profiler_aggregate	Off	Off
xdebug.profiler_append	Off	Off
xdebug.profiler_enable	Off	Off
xdebug.profiler_enable_trigger	Off	Off
xdebug.profiler_output_dir	/tmp	/tmp
xdebug.profiler_output_name	cachegrind.out.%p	cachegrind.out.%p
xdebug.remote_autostart	Off	Off
xdebug.remote_enable	On	On
xdebug.remote_handler	dbgp	dbgp
xdebug.remote_host	192.168.123.132	192.168.123.132
xdebug.remote_log	no value	no value
xdebug.remote_mode	req	req
xdebug.remote_port	9000	9000
xdebug.show_exception_trace	Off	Off
xdebug.show_local_vars	Off	Off
xdebug.show_mem_delta	Off	Off
xdebug.trace_format	0	0
xdebug.trace_options	0	0
xdebug.trace_output_dir	/tmp	/tmp
xdebug.trace_output_name	trace.%c	trace.%c
xdebug.var_display_max_children	128	128
xdebug.var_display_max_data	512	512
xdebug.var_display_max_depth	3	3

This is the content of /etc/php5/conf.d/xdebug.ini:
zend_extension=/usr/lib/php5/20060613/xdebug.so
xdebug.remote_host=192.168.123.132
xdebug.remote_port=9000
xdebug.remote_enable=1
xdebug.remote_autostart=0

I have verified that the file "/usr/lib/php5/20060613/xdebug.so" exists on the remote Debian server. What troubles me is this file path does not appear in the output of phpinfo(), nor does the exact variable "zend_extension". Should it?

"192.168.123.132" is the IP address of the router. It is DHCP assigned but I check it before each attempted debug session and change the php.ini files if necessary.

In the ZoneAlarm firewall on my Windows XP machine the application Eclipse.exe has total access to everything. Is there a port xdebug uses on the remote Debian 5 server that iptables needs to allow traffic on?

The hostnames and IP numbers in the above have been changed to example ones to protect the innocent.

[Updated on: Fri, 25 November 2011 03:50]

Report message to a moderator

Re: xdebug: Unexpected termination of script [message #759043 is a reply to message #758862] Fri, 25 November 2011 19:05 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 11
Registered: December 2010
Location: Torrance, CA
Junior Member
Instead of relying on the binary package installed by aptitude I tried compiling xdebug. This brought the version of xdebug I now have to v2.1.2. There is still a problem. The home page, which is index.php, loads. But when I enter a password to enter the site no page loads. The browser freezes in a state of continually indicating it is waiting for a webpage with no time out.

On my local Windows XP machine's command prompt the command netstat -bo no longer gets a line with FIN_WAIT_1 in it. It shows only the line showing port 9000 is open.
Previous Topic:Eclipse for PHP Developers Helios Service Release 2 Now Available
Next Topic:How to integrate Symfony2 to Eclipse
Goto Forum:
  


Current Time: Fri Nov 08 21:51:42 GMT 2024

Powered by FUDForum. Page generated in 0.02186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top