Nathan | 3 Jan 17:24 2013

xdebug over Google Chrome

Over the last few years Google Chrome has began to take over the interweb but until recently has lacked extend-ability for crazy app ideas. It also seems like xdebug or other remote debugging apps/extensions/plugins have lacked good integration for programs to work with it (in my opinion). It seems like if you find a good editor you like it does not work with xdebug and if you find an editor you can work with the debugging support is a pain to setup and still requires the server to be properly configured to talk to the editor, the editor to be configured to handle the requests properly and initiate browser requests properly.

In today's web development most developers work with javascript, css, (X)HTML, SSS (Server Side Scripting) and maybe even XSL, XML, XPATH and/or SQL. As it stands (from personal experience and majority of the people I know that work in this field) use Google Chrome for most of my/their web development needs mostly because it is a good debugging tool for CSS, (X)HTML and Javascript but lacks almost any SSS dev support.

In short what I am asking is if anyone has heard of any projects or anything that work with Google Chrome's Developer tools to work with Server Side Scripting debugging? If not I believe I will start one and would like to seek help.

-Nathan Bruer
Henk Kroon | 17 Dec 21:16 2012

Installing and enabling Xdebug on MAMP PRO

I am trying to set up Xdebug on my MAMP PRO installation. I tried to get the correct Xdebug version with custom installation instructions but I got stuck.

According to step 4 in the tailored installation instructions (see I should get the following output:

    Configuring for:
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525

But my output reads as follows:

    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626

Next I try the instructions (see at because the tailored installation instructions advice me to do so.

I undo the first step by deleting xdebug-2.2.1.tgz and the unpacked folder and then I start at step 1 again. My input for step 4 is


and the output reads as follows:

    grep: /Applications/MAMP/bin/php/php5.4.4/include/php/main/php.h: No such file or directory
    grep: /Applications/MAMP/bin/php/php5.4.4/include/php/Zend/zend_modules.h: No such file or directory
    grep: /Applications/MAMP/bin/php/php5.4.4/include/php/Zend/zend_extensions.h: No such file or directory
    Configuring for:
    PHP Api Version:        
    Zend Module Api No:     
    Zend Extension Api No: 

My guess would be that I need to install php.h, zend_modules.h and zend_extensions.h but I can not find them on the web. How do I best proceed in order to install Xdebug?


Robert Henry | 5 Dec 20:03 2012

getting true statement counts from xdebug

Is there a way to get statement counts from the xdebug code coverage
tool?  Currently, the code coverage tool yields a 1 or -1 value,
indicating "executed", rather than the number of times the statement
was executed.


Robert Henry, New Relic

Nicolas BOUSSIER | 3 Dec 09:24 2012

feature request for debugging mobile apps


I'm actually creating a mobile app that make request on a php application (online shop).

It could be very usefull to be able to specify in the xdebug cookie a specific remote_connect_back IP address.

In such case, the remote_connect_back address is not the IP address of the terminal who made the request (mobile) but the IP address of the computer where the PHP  IDE is running.

Actually, I have set up the xdebug.remote_host parameter and it works, but in this limits the use to only one developer.

Best regards


General Mail | 2 Dec 15:08 2012

Re: Unable to get Xdebug to connect to client

I am sorry, can you please elaborate ?

On 12/1/2012 8:46 PM, Ilan Berkner wrote:
> Unsubscribe
> On Dec 1, 2012 5:03 PM, "General Mail" <general <at>
> <mailto:general <at>>> wrote:

General Mail | 1 Dec 22:56 2012

Unable to get Xdebug to connect to client


In the past, I have had great experiences with getting Xdebug to 
cooperate flawlessly with Eclipse PDT (I've switched to Aptana Studio 
3). I'll elaborate a bit more on my setup:

OS: Linux (OpenSUSE 12.2 Text Install)
PHPv: PHP 5.3.15
Running in VM (VirtualBox), Host Windows 7.
The IDE is running on the Host.
Firewall (on host): Comodo Firewall, VirtualBox network is whitelisted
Firewall (on guest): Disabled

Ran the following test for connectivity (inside the guest, I can contact 
the host via (which also acts as a gateway)):

linux-i23u:/mnt/Workspace/openZ-stable # telnet 9000
Connected to
Escape character is '^]'.


Consequently I checked my firewall log (as the rule is set to log 
events) and the event is logged as successful (it also show the 
application that is processing the socket).

I checked XDEBUG_CONFIG environment variable:

linux-i23u:/mnt/Workspace/openZ-stable # echo $XDEBUG_CONFIG

Here is a snapshot of my xdebug configuration settings:


Everything seems to be order however from what I can deduced from 
'strace', 'tcpdump', and firewall events. There seems to be NO 
CONNECTION being made and I conclude that I must be missing something 
for xdebug to function as expected?

P.S. More information:

xdebug support => enabled
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
xdebug.collect_assignments => Off => Off
xdebug.collect_includes => On => On
xdebug.collect_params => 3 => 3
xdebug.collect_return => On => On
xdebug.collect_vars => Off => Off
xdebug.coverage_enable => On => On
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 => no value => no value
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 => Off => Off
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => =>
xdebug.remote_log => /tmp/xdebug.log => /tmp/xdebug.log
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_enable_trigger => 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
XDEBUG_CONFIG => idekey=ECLIPSE_DBGP_192.168.56.1
_SERVER["XDEBUG_CONFIG"] => idekey=ECLIPSE_DBGP_192.168.56.1

Javier Garcia | 9 Nov 15:36 2012

vim + xdebug plugin = error code 5


I'm using vim to my php apps, and i have just installed a plugin to 
debug them using xdebug. This is the plugin:

The plugin works ok, and now I'm trying to create a script to automatize 
the some actions, that is: when I press F5 to start to debug, I would 
like to refresh my browser automatically.

So these are the scripts:


WID=`xdotool search --name "Mozilla Firefox" | head -1`
xdotool windowfocus $WID
sleep 2
xdotool key F5

currentwindow=`xdotool search --name "GVIM" | head -1`
xdotool windowactivate $currentwindow
xdotool ke

It seems it works ok, but when press F4 to Step Out i get an error code 
5, even when I put the breakpoint in a line with code. When I do the 
same manually I don't get that error...

Any help?


Fred Garlov | 29 Oct 12:51 2012

profiler output is not generated for some requests


for some requests profiler output is not generated. I'm sure it has
worked earlier for me. I've increased memory_limit with no luck. Any
ideas how to troubleshoot this issue? Profiler works perfectly for
some "simple" pages

php_value xdebug.profiler_output_dir /tmp/me/xdebug
php_value xdebug.profiler_output_name cachegrind.out.%t.%u_%R
php_value xdebug.profiler_enable 1


Henrique Barroso | 14 Oct 22:22 2012

I created a Mac OSX Xdebug client standalone app

Hello Xdebug community.

I just want to share with all of you my latest app, it's for Mac OSX and it's a Xdebug client. 
I'm going to release it very soon, meanwhile you can check it out at

In a nutshell here are some of the main features:

- Doesn't need to set breakpoints directly to debug, one can just type "xdebug_break();" on their code so Codebug gets notified with everything (including source code)
- Supports breakpoits (if you don't want to use the above option)
- Path mapping
- Awesome code viewer with custom themes

More features are on planning board.
I'd love to know if this would be something you would like to use as a standalone tool.

Cheers guys

Henrique Barroso

Martin Brilla | 13 Oct 22:16 2012

Can't start xdebug, refuses to connect

Hi, I managed to install xdebug and enable it through local php.ini files when needed. It was working just fine for about a month, but today It doesn't.

If I try to start a debug session with Zend Studio IDE, it gets stuck in "57% launching: waiting for xdebug session"

phpinfo reports Xdebug v2.1.0

local php.ini

xdebug.remote_connect_back = On
xdebug.profiler_enable = Off
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = '/media/data/www/clients/client1/web2/tmp/'
Ubuntu server 12.04, upgraded today
PHP Version 5.3.10-1ubuntu3.4
Xdebug v2.1.0

Any help is really appreciated!

Thanks a lot!

Lic. Martin Sebastian Brilla Ghia
Gerente de Desarrollos
MGS Creativa - Creatividad A Tu Servicio

Damjan Cvetko | 9 Oct 23:36 2012

Stramge lineno in stack_get

Hi Derick.

I'm updating and old client implementaion and got to an interesting issue. When I use __autoload the stack level where the autload was initiated doesn't have a valid lineno.

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="" command="stack_get" transaction_id="xdc142">
<stack where="__autoload" level="0" type="file" filename="file:///var/www/podsabotin/include/common.php" lineno="9"></stack>
<stack where="common::getDatabase" level="1" type="file" filename="file:///var/www/podsabotin/include/common.php" lineno="0"></stack>
<stack where="{main}" level="2" type="file" filename="file:///var/www/podsabotin/index.php" lineno="36"></stack>

Bug? Too old xd?

From php -i

PHP Version => 5.3.3-7+squeeze14
xdebug support => enabled
Version => 2.1.0

Supported protocols => Revision
DBGp - Common DeBuGger Protocol => $Revision: 1.145 $

Best regards,