NuSphere Corporation
Support Services
Overview
KB
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
Technical FAQ
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla Development
Learn PHP
<Installation and Configuration Q&AWorking with PhpED Q&A>
Last updated: Tue, 25 May 2010

Debugger related Q&A

1. FAQ: Does phped support debugging under Apache or IIS ?

Certainly it does. PhpED supports debugging php scripts in any web servers running on Linux, FreeBSD, SunOS, Mac OSX or Windows, regardless remote or local. See HOWTO: install debugger module for further details on how to install debugger module.

2. FAQ: What is DBGSESSID syntax ?

DBGSESSID=nnn[@host][:port][;{flags}]

where

nnn - is session ID (any positive number or zero)
NOTE: negative values prohibit debug session to run and drops cookie

host - is host name or IP address of the host where your run PHPED IDE. You may set clienthost which is a keyword, in this case debugger looks for proper client IP address automatically.

flags - set of the following flags delimited with commas:
s=skip - skip number of HTTP requests before actual session should run
d={0|1} - start debuger
p={0|1} - start profiler
c={0|1} - enable/disable session

For example:
DBGSESSID=1@clienthost:7869;d=1,p=1
DBGSESSID=1;d=1,p=0
DBGSESSID=1:7869;d=1,p=0,s=5

See HOWTO: Run debugger and how DBGSESSID can be used.

3. FAQ: When I try to run debuger it fails with timeout message

4. FAQ: After the debugger module was installed I'm getting "PHP Startup: dbg: Unable to initialize module. module compiled with api=XXXXXX. PHP compiled with API=YYYYYY. These options need to match.". What to do?

This error means that you're trying to load dbg module with PHP it's not compatible with.
Details:
Each debugger module is compatible with only one PHP version. To make everything easier I added this version to the dll filename. For example dbg-php-5.2.dll is compatible with php 5.2.x and only with it. Do not try to load it for example with php 5.3.x or you'll get the message shown above.

5. FAQ: An error message saying that I need DBG version 3.9...

PhpED 5.95 can work with debugger modules 3.9.x only.
For your convenience, phped is shipped with debugger modules for all supported server platforms and all these modules can be found in phped\debugger\server subdirectory. For example if you have phped installed in c:\program files\nusphere\phped, you'd check c:\program files\nusphere\phped\debugger\server .

In order to install debugger module, please proceed with HOWTO: install debugger module.

6. FAQ: Can't start debugger on remote server

I inserted DebugBreak() function call into my script running on remote Apache and whenever I launch it though the browser I see x.x.x.x client connected and x.x.x.x client disconnected in DbgListener log window. Nothing else happens. How to run debugger ?

NuSphere PhpED comes with Project Settings Wizard that greatly simplifies setting up the projects and troubleshooting the problems with remote debugging in particular. For further info please proceed with this article




<Installation and Configuration Q&AWorking with PhpED Q&A>
Last updated: Tue, 25 May 2010