NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
IDE Debugger won't start session on localhost


Joined: 19 Nov 2010
Posts: 3
Reply with quote
Hi,

I'd appreciate any help getting a debug session going in PhpEd. I'm trying this with a very simple one file project; I just want to get practice using a debugger. Each time I run the debugger the output window times out. The session isn't started. Here's the message in the debug log:

Failed to navigate to URL: http://localhost/phpclass/name_validator.php?DBGSESSID=405196607967100002;d=1,p=0,c=1

I'm running the server on the same machine that I'm developing on. Going to http://localhost/phpclass/name_validator.php works with no issues.

Phpinfo says dbg is running. The debug section of php.ini is:
zend_extension="c:\wamp\bin\php\php5.3.0\ext\dbg-php-5.3.dll"
[debugger]
debugger.JIT_enabled=Off
debugger.JIT_level=3
debugger.hosts_allow=127.0.0.1
debugger.hosts_deny=ALL
debugger.ports=7869

Debugger listener is running. The listener log is:
12/7/2010 3:45:02 PM Starting the listener
12/7/2010 3:45:02 PM Listener started
12/7/2010 3:45:02 PM IDE "PhpED IDEVersion 5.9.5 (Build 5985)" attached
12/7/2010 3:50:33 PM localhost client connected
12/7/2010 3:50:33 PM localhost, new session (405196601129300001): /phpclass/dbg-sample.php, server: localhost, sapi: apache2handler
12/7/2010 3:50:35 PM localhost client disconnected
12/7/2010 3:51:34 PM localhost client connected
12/7/2010 3:51:34 PM localhost, new session (405196607967100002): /phpclass/name_validator.php, server: localhost, sapi: apache2handler

The messages at 3:50 were from running the debug wizard when I set up a new project. No problems were found. The messages at 3:51 were from the session that timed out.

wbd-wizard says:
I assume that you placed me in the root directory of your web server and on your PhpED machine pointed your browser to me - like this: <URL of your web site>/dbg-wizard.php

I see that:

* PHP Version: 5.3.0
* Web Server: Apache/2.2.11 (Win32) PHP/5.3.0
* Server Name: localhost
* Platform: WINNT/x86
* Your Client IP Address: 127.0.0.1
* Your Server IP Address: 127.0.0.1
* Port: 80
* Your Web Server is on the same machine with PhpED
* Path to website files: c:\wamp\www\
* Document Root is: c:\wamp\www\\
* Your PHP.INI file is: C:\wamp\bin\apache\Apache2.2.11\bin\php.ini
* PHP extensions directory is: c:\wamp\bin\php\php5.3.0\ext\
* DBG (PHP DEBUGGER) Version 3.9.10 is INSTALLED

I noticed that the document root has an extra backslash. When I enter the values in the wizard or the project setup there are no backslashes after 'www'.

The apache access log at this time shows:
127.0.0.1 - - [07/Dec/2010:15:50:28 -0800] "GET /phpclass/dbg-wizard.php?version HTTP/1.1" 200 17
127.0.0.1 - - [07/Dec/2010:15:50:28 -0800] "GET /phpclass/dbg-wizard.php?ide&expected-dbg=3.9.10 HTTP/1.1" 200 3442
127.0.0.1 - - [07/Dec/2010:15:50:33 -0800] "GET /phpclass/dbg-sample.php HTTP/1.1" 200 88
10.0.0.11 - - [07/Dec/2010:15:50:37 -0800] "GET / HTTP/1.0" 200 4187
10.0.0.11 - - [07/Dec/2010:15:50:44 -0800] "GET / HTTP/1.0" 200 4187
10.0.0.11 - - [07/Dec/2010:15:52:21 -0800] "GET / HTTP/1.0" 200 4187
10.0.0.11 - - [07/Dec/2010:15:52:28 -0800] "GET / HTTP/1.0" 200 4187
10.0.0.11 - - [07/Dec/2010:15:55:02 -0800] "GET / HTTP/1.0" 200 4187
10.0.0.11 - - [07/Dec/2010:15:56:54 -0800] "GET / HTTP/1.0" 200 4187
10.0.0.11 - - [07/Dec/2010:15:59:49 -0800] "GET / HTTP/1.0" 200 4187

So I see the debugger entries for the wizard test at 3:50, but nothing at 3:51 until the timeout 10 minutes later. There's nothing in the apache error log around this time.

All looks good yet I can't start a debug session. I'd appreciate any help to get this running.

I'm running Windows 7/64 bit.

Thanks,
Ed
View user's profileFind all posts by tekpalsSend private message


Joined: 10 Dec 2006
Posts: 4
Reply with quote
Ed,

I don't have a sure-fire fix for you as you are running some different versions of things than I do. Most notably -- and on a Windows development box this can be significant -- is your running PHP 5.3.0 and Apache 2.2.11. These are the out-of-box versions in the basic WamServer most recent install package. However, they are not the latest versions available as the latest WampServer release is now a year or more old.

As a first step, I'd go to WampServer.com and update to the latest Apache and, most importantly, the latest PHP 5.3.1. Then try your debugging again. If this doesn't fix things for you, I'd strongly recommend a down-step to 5.2.11. A very strong and welcome feature of WampServer is its nearly seamless on-demand plug-and-run mix-and-match of core components. Pop in 5.2.11 and configure it for DBG debugging and see if you have more success.

Unless you have a compelling reason to be on 5.3.x for PHP, I'd recommend staying off the still-evolving edge of PHP as this can sometimes cause more tinktering side-problems than it is worth. If you do, however, absolutely need 5.3.x and if that is all or only what is available on your public/deployment server, then you'll have to stick with that. In which case...

There are some unofficial but excellent WampServer add-on versions of all WampServer components rolled and released by an active Wamp community member, Steven Martin. I highly recommend these, in particular, you will find he provides a PHP 5.3.3 that is certainly a better bet than the 5.3.0 you are running. You'll find his stuff at PampServer.com (sorry forum rules won't let me make this a link) and there is sticky forum info here: http://www.wampserver.com/phorum/read.php?2,66329. Steven offers both x32 and x64 packages.

In other/final words... before beating your current config every which way you can, assume that the combo of dated components you have may never work. So let WampServer's mix-and-match help you test some different set-ups to see if you are simply in a no-win situation at the moment.

Hope this helps,
--Sohodojo Jim--
AKA DropaBalm.com Jambo
View user's profileFind all posts by Sohodojo_JimSend private message


Joined: 19 Nov 2010
Posts: 3
Reply with quote
This issue is resolved.

There was a conflict with vs-php, which I also had installed on the machine to evaluate. I uninstalled vs-php and the debugger works correctly in both Apache and IIS.
View user's profileFind all posts by tekpalsSend private message
IDE Debugger won't start session on localhost
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic