NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Cannot run session DBG - Time out - Cannot start debugger


Joined: 13 Oct 2003
Posts: 2
Reply with quote
OS: W98 SE - Italian version.

Started with the FreeTechPlat installation.
Installed FreeTechPlat: a piece of cake. As expected.
(69.128KB- NuSphere-freetechplat-3.0.1-Win32.zip )
All went well (minor difference: no Start Browser in start/programmi/nusphere )

Since there were problems with previous try I installed it in C:/programmi/nusphere
Started Apache and MySQL servers
Tested with a small two files apllication (session test) - works perfectly.
Close servers.

Started installation of phpED vers. 3.2 up.pack#1 ( NuSphere-phped-3.2.1evl-Win32.exe 22.163KB )
Installed in proposed default directory: C:\Programmi\nusphere\phpED
Choice: full installation

Started Apache and MySQL servers
Tested with a small two files apllication (session test) - still working perfectly.Close servers.

By looking into the file directory c:/programmi/nusphere I see that there are TWO "php" fully equipped directories. The 1st under apache dir, the 2nd under phpED.
The last has php.ini patched with:

extension=php_dbg.dll-4.3.3

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Debugger]
debugger.enabled=true
debugger.profiler_enabled=true


and under php/extensions is present the file : php_dbg.dll-4.3.3

the 1st has no modification. The docs says that installing phpEd after the FreeTechPlat the required patches to php.ini should be done automagically.

Started phpED
Tools--> open URL --> http://localhost:9000/apps/test/ses-a.php (Run in debugger, Run in external browser)

The ext.browse starts, the application as well... but in phpEH the following fatal error:

Failed to start debug session(timeout)
Pelase verify if debugger module is installed on the server that corresponds to http://localhost:9000/apps/test/ses-a.php URL


The PHP DBG Listener only list: the Listener Started.

I manually did the following:
1 - copied php_dbg.dll-4.3.3 to apache/php/extension
2 - added followinfg lines to apache/php/php.ini

extension=php_dbg.dll-4.3.3

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Debugger]
debugger.enabled=true
debugger.profiler_enabled=true


Same result as before.
Browsed the tech support forums and made the following modification:

[Debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=localhost, 127.0.0.1,localhost:9000
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16


to both php.ini
Stopped and restarted the servers.
Started phpED

Same error. But this time the Bowser windows does not display the results.

Even tried
http://localhost:9000/apps/test/ses-a.php?DBGSESSID=1@clienthost:7869
phpED went ghosted !!! ('had to kill it via crtl-alt-del)


WHAT DID I DO WRONG ?
Thnx

Sandra
View user's profileFind all posts by sandracSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
FreeTechPlatform is a different product. It's quite outdated and packaged with php 4.0.6, not 4.3.3, therefore you can't use dbg-4.3.3 with it, you'd use dbg-4.0.6.
If you need Apache+php-4.3.3 you have to install them yourself. You can certainly take php-4.3.3 distribution available with PHPED. But Apache can't be taken from TechPlaform in this case. Take care of Apache. It can be compiled with EAPI or without that. In case of EAPI you can not use php4apache.dll compiled for non-EAPI Apache and vice-versa.
There is no compatibility between EAPI and non-API modules.
For clarification, EAPI itself comes with SSL-enabled Apache.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
half success


Joined: 13 Oct 2003
Posts: 2
Reply with quote
Thank you ddmitrie !

By updating to PHP 4.3.3 and modifing php.ini manually I got phpED to run.
The application is intercepted if a
debugbeark();
is inserted at the beginning of the code.

phpED ia called and it can be debugger using F7/F8.
Unfortunately I cannot have it working with F4 (run to cursor ) of with F9. Infact it doesn't stop at breakpoints (hit cout nailed to zero)

Suggestions ? What I did wrong this time ?
sandra
View user's profileFind all posts by sandracSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Hmm, seems you didn't create any projects and tried to debug standalone script(s). In this case breakpoints are never get resolved and therefore can never trigger. Wink
Okay, first you need to read PHPED 3.2 FAQ
howto-run-debug-session-t585.html
then, create project, fill settings and everything will work smoothly. Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Cannot run session DBG - Time out - Cannot start debugger
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