Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug doesn't start and Eclipse hungs with "Waiting for XDebugger session" (progress bar
icon9.gif  XDebug doesn't start and Eclipse hungs with "Waiting for XDebugger session" (progress bar [message #688823] Sat, 25 June 2011 21:40 Go to next message
Francesco PIRANEO G. is currently offline Francesco PIRANEO G.
Messages: 2
Registered: June 2011
Junior Member
Hi all,

I've installed Eclipse Indigo, PDT and Apache on my ubuntu 11.04 laptop to run a development system for php; actually I can edit code, start website to inspect it but the debugger (XDebug) doesn't work at all.

What I can be sure that on php XDebug has been installed and running because when I run a php page with phpinfo() I can see all the details about XDebug and it's listening on port 9000, when is opened only when the website is running.

iptables is installed on the machine but it has no rules:

-----------------------------------------------------
$ sudo iptables -L
[sudo] password for fpiraneo:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
-----------------------------------------------------

So any clue or check to do is very apreciated.

Follows all the details and further informations.

Thank you very much for your precious help.

Francesco

Eclipse SDK 3.7.0 "Indigo"
- Javascript development tools - 1.3.0
- Web developer tools - 3.3.0
- XML editors and tools - 3.3.0
- PDT - 3.0.0

Zend Debugger is not installed

Browser URL: mylocalhost/tamtammer/index.html?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13090349909591

Message on Eclipse: "Waiting for XDebugger session"

PHP Version 5.3.5-1ubuntu7.2
Apache Version Apache/2.2.17 (Ubuntu)

XDebug version: 2.1.0
Taken from phpinfo()
DBGp - Common DeBuGger Protocol $Revision: 1.145 $
xdebug.auto_trace Off Off
xdebug.collect_assignments 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.file_link_format no value no value
xdebug.idekey ECLIPSE_XDEBUG ECLIPSE_XDEBUG
xdebug.manual_url (I have link here - Erased to post the message)
xdebug.max_nesting_level 100 100
xdebug.overload_var_dump On On
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_connect_back Off Off
xdebug.remote_cookie_expire_time 3600 3600
xdebug.remote_enable On On
xdebug.remote_handler dbgp dbgp
xdebug.remote_host localhost localhost
xdebug.remote_log /var/log/apache2/xdebug.log /var/log/apache2/xdebug.log
Unfortunately nothing is logged on this file and the file doesn't exist!
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
xdebug.scream Off Off
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

$ nmap -sT localhost
When the web page is opened and XDebug running

Starting Nmap 5.21 ( nmap.org ) at 2011-06-25 22:56 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00058s latency).
Not shown: 992 closed ports
PORT STATE SERVICE
80/tcp open http
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
2049/tcp open nfs
9000/tcp open cslistener
10000/tcp open snet-sensor-mgmt (Zend debugger?!?! I don't installed it!!)

$ nmap -sT localhost
No browser pages running

Starting Nmap 5.21 ( nmap.org ) at 2011-06-25 23:29 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00061s latency).
Not shown: 994 closed ports
PORT STATE SERVICE
80/tcp open http
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
2049/tcp open nfs
Re: XDebug doesn't start and Eclipse hungs with "Waiting for XDebugger session" (progress [message #688864 is a reply to message #688823] Sun, 26 June 2011 02:09 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 347
Registered: July 2009
Location: Japan
Senior Member
>Browser URL: mylocalhost/tamtammer/index.html?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13090349909591

Did you configure apache to handle .html file with php ?
(maybe at /etc/apache2/mods-enabled/php5.conf)

BTW,
>10000/tcp open snet-sensor-mgmt (Zend debugger?!?! I don't installed it!!)
PDT(=debugger client) opens ports anyway whether server-side debugger is installed or not.
Re: XDebug doesn't start and Eclipse hungs with "Waiting for XDebugger session" (progress [message #688965 is a reply to message #688864] Sun, 26 June 2011 11:19 Go to previous message
Francesco PIRANEO G. is currently offline Francesco PIRANEO G.
Messages: 2
Registered: June 2011
Junior Member
Hi Toshihiro,

thank you for your answer; now the debugger doesn't wait anymore but it doesn't stop at breakpoint... Unfortunately I cannot be more precise because there is no other visual effect than the output page that has been rendered in the external browser ignoring all breakpoints.

I acted in two ways for the modifications: changing the .html extensions of the files to .php and adding following on php5.conf into the /etc/apache2/mods.enable directory;

<FilesMatch "\.html">
SetHandler application/x-httpd-php
</FilesMatch>

Any clues is still apreciated.

Francesco
Previous Topic:(no subject)
Next Topic:changes in PD3
Goto Forum:
  


Current Time: Fri Sep 19 18:01:54 GMT 2014

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

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