"waiting for XDebug session" problem [message #55058] |
Wed, 26 September 2007 09:16  |
Eclipse User |
|
|
|
Originally posted by: ad.tis-net.de
I'm getting some problems, trying to get xdebug to work. My system is:
OS : Windows Vista(32 Bit)
Apache : 2.2.4
PHP : 5.2.4
eclipse : 3.3.0
PDT : 1.0.0v20070917 (last version)
xdebug : php_xdebug-2.0.0-5.2.2.dll (last version)
I've renewed my workspace after updating PDT. And there is no problem
while loading php_xdebug_xxx.dll in apache - i can see in phpinfo()
output that it is properly loaded.
But after launching debug session it is stucking in the progress-view
while showing:
"waiting for XDebug session"
and nothing else happens. Does somebody has a clue about what's wrong?
Any help or hints will be appreciated.
Cheers,
Alex
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: "waiting for XDebug session" problem [message #55594 is a reply to message #55541] |
Thu, 27 September 2007 08:23   |
Eclipse User |
|
|
|
Hi Alex, ok from this it would seem that for some reason xdebug is never trying to connect
to PDT.
When you do a web launch, a web browser (either firefox, IE or Eclipse internal)
should be launched and your URL issued with the following appended
?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=(some number)
If a web browser isn't launching then look in the preferences to see what it is selected to
and try changing to a different browser.
If it is launching but the URL doesn't have the extra XDEBUG_SESSION_START then let me know.
If that is ok and the request definitely is going to the web server, then for some
reason xdebug is not seeing the XDEBUG_SESSION_START in the URL and is never initiating the
debug session.
Dave Kelsey
Alex wrote:
> 1. PDT is listening. Here is netstat output:
> TCP 0.0.0.0:9000 pc:0 LISTENING
> [eclipse.exe]
> TCP 0.0.0.0:10000 pc:0 LISTENING
> [eclipse.exe]
> 2. File xdebug.log does not exist - i don't really know why - probably
> it doesn't come so far?
> 3. Firewall is off.
>
>> ok, I see you have xdebug logging turned on is anything being output to
>> c:\apache\logs\xdebug.log ?
>>
>> Also try executing the command "netstat -a -b" and reporting which ports
>> eclipse.exe is listening on (the defaults would be 9000, 10000).
>>
>> The problem is that PDT is waiting for a socket connection from the
>> web server. XDebug
>> initiates that socket connection, so so long as
>> 1. PDT is listening on the same port as XDebug wants to connect to
>> (netstat -a -b)
>> 2. XDebug loads ok and attempts to establish a connection (xdebug log)
>> 3. nothing stops the connection from occuring (eg a firewall).
>>
>> Then the session should be established.
>>
>> Dave Kelsey
>>
>>
>> Alex wrote:
>>> Sure, see phpinfo.html in the attachment.
>>>
>>>> Hi Alex, would it be possible to post a complete text version of the
>>>> phpinfo() output ?
>> etc...
|
|
|
Re: "waiting for XDebug session" problem [message #55647 is a reply to message #55594] |
Thu, 27 September 2007 08:41  |
Eclipse User |
|
|
|
Originally posted by: ad.tis-net.de
That's it!
Thank you Dave! The Problem was the wrong path to Firefox browser in
eclipse preferences(i copied eclipse from my old system and "Program
Files" folder was called "Programm" there. And i've totally forgotten that.
One more time thx for your help.
Alex
> Hi Alex, ok from this it would seem that for some reason xdebug is never
> trying to connect
> to PDT.
>
> When you do a web launch, a web browser (either firefox, IE or Eclipse
> internal)
> should be launched and your URL issued with the following appended
> ?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=(some number)
>
> If a web browser isn't launching then look in the preferences to see
> what it is selected to
> and try changing to a different browser.
>
> If it is launching but the URL doesn't have the extra
> XDEBUG_SESSION_START then let me know.
>
> If that is ok and the request definitely is going to the web server,
> then for some
> reason xdebug is not seeing the XDEBUG_SESSION_START in the URL and is
> never initiating the
> debug session.
>
> Dave Kelsey
>
>
> Alex wrote:
>> 1. PDT is listening. Here is netstat output:
>> TCP 0.0.0.0:9000 pc:0 LISTENING
>> [eclipse.exe]
>> TCP 0.0.0.0:10000 pc:0 LISTENING
>> [eclipse.exe]
>> 2. File xdebug.log does not exist - i don't really know why - probably
>> it doesn't come so far?
>> 3. Firewall is off.
>>
>>> ok, I see you have xdebug logging turned on is anything being output to
>>> c:\apache\logs\xdebug.log ?
>>>
>>> Also try executing the command "netstat -a -b" and reporting which ports
>>> eclipse.exe is listening on (the defaults would be 9000, 10000).
>>>
>>> The problem is that PDT is waiting for a socket connection from the
>>> web server. XDebug
>>> initiates that socket connection, so so long as
>>> 1. PDT is listening on the same port as XDebug wants to connect to
>>> (netstat -a -b)
>>> 2. XDebug loads ok and attempts to establish a connection (xdebug log)
>>> 3. nothing stops the connection from occuring (eg a firewall).
>>>
>>> Then the session should be established.
>>>
>>> Dave Kelsey
>>>
>>>
>>> Alex wrote:
>>>> Sure, see phpinfo.html in the attachment.
>>>>
>>>>> Hi Alex, would it be possible to post a complete text version of
>>>>> the phpinfo() output ?
>>> etc...
|
|
|
Powered by
FUDForum. Page generated in 0.07089 seconds