David Cimadevilla | 23 May 23:18 2012

xdebug session does not start. ubuntu 12.04 LAMP

First of all, thank you for developping such a great tool. I have been using it for many years and it makes my life a little easier. To the point:


It seams like remote xdebug sessions do not start on my system.

I have a fresh installation of ubuntu 12.04 and LAMP. I have installed and configured it to use with netbeans but it seems sessions are not starting. I have tried everyting from stackoverflow and other forums such as the ipv4 thing... no luck.

Some data:

$ php -v
PHP 5.3.10-1ubuntu3.1 with Suhosin-Patch (cli) (built: May  4 2012 02:20:36)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans

php.ini:

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000

xdebug.remote_log=/home/david/xdebug-log.txt


$ apache2 -v

Server version: Apache/2.2.22 (Ubuntu)
Server built:   Feb 13 2012 01:51:50


SYMPTOMS:

1) I execute debugclient... it gets waiting for server connection. I can check with netstat that port 9000 is now opened and listening.

2) I load in Firefox http://localhost/test.php?XDEBUG_SESSION_START=test-xdebug

3) debugclient does not show any opening session data. It should do it, doesnt it?

4) xdebug-log.txt remains empty. It has 666 permissions.


Before to post an issue, I would like to know if there is anything else I can try to find out where the problem could be.


I would be very grateful if someone could give some hint.

Savoy, Melinda | 3 May 23:16 2012

Question on error message

I just installed from my debian OS via the Synaptic manager the xdebug 2.1.0-1 version of xdebug and I got it installed just fine however, I am doing a tutorial on PHP right now and I tried doing a debug on a very simplistic PHP page and I was able to step through my code but when I wanted to launch it again after a change to the code but then I got this error message in a dialog box:

 

Web Launch Already Running

 

Here is what is in my php.ini file in the Dynamic Extensions section that I had added:

 

load module

zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"

 

;some options

xdebug.remote_enable=1

xdebug.remote_handler=dbgp

xdebug.remote_mode=req

 

;The following IP should be of the host running Eclipse!

xdebug.remote_host=127.0.0.1

xdebug.remote_port=9000

xdebug.idekey=

 

;Only enable the following if you want profiler output (lots of data!)

;xdebug.profiler_enable=1

;xdebug.profiler_output_dir=/var/log/XDebug/

;xdebug.profiler_enable_trigger=1

 

Any help/direction would be appreciated.  It’s driving me nuts!

 

Melinda Savoy

Programmer/Analyst - Technology Services

Weatherford College

225 College Park Dr., Weatherford TX, 76086

Email address:  msavoy <at> wc.edu

Office number:  817.598.6364

 

Michiel Thalen - Thalent | 2 May 19:43 2012
Picon

performance

Hi there.

I noticed that when loading the xdebug module (2.1 or 2.2) php gets an 
instant slowdown of 300%. Even when disabling all settings, it slows 
down alot.
Isn't there a way that when you dont use it, it doesn't harm the 
performance so much?
Reloading php is no option.

--

-- 
Regards,

Michiel Thalen

Jermaine Medina | 28 Apr 22:29 2012

php_xdebug-2.1.4-5.4-vc9.dll

Hi

 

I was hoping you could help me.

 

I have used your tailored installation instructions page and it is pointing me to down load the following file:

 

php_xdebug-2.1.4-5.4-vc9.dll

 

however when I do it goes to a 404 page and when I look down your file list it does not appear.

 

Would you be able to please point me to where I could download this file or maybe an alternative that I could use.

 

Thanks for the help.

 

Jay

Jon Haynes | 25 Apr 17:24 2012
Picon

Windows server running xdebug, developer client running Linux

Hello. I have a problem with xdebug 2.1.2 (PHP 5.3.8) running on IIS
on a windows machine and my vim DBGp client on Linux
(https://github.com/vim-scripts/XDebug-DBGp-client-for-PHP)

The paths which are being sent to my client from xdebug are windows
paths (e.g. c:/Path/On/Server/www/...) and my development code sits
under /home/jon/code/trunk/www/...

Is there a way I can translate the paths?

Thanks

Jake Foley | 23 Apr 23:30 2012

Official MD5

Hi,
 
Can I get an official MD5 of the http://xdebug.org/files/xdebug-2.1.4.tgz and http://xdebug.org/files/xdebug-2.2.0RC2.tgz? I would like to download / compile them and strict work procedure requires an MD5 check.
 
Thanks for your time,
 
Jake
roy brener | 12 Apr 17:20 2012
Picon

xdebug stoped working

Hello And sorry to bother you.
i started working with xdebug with netbeans 7.1 a few days ago.
today suddenly xdebug (or netbeans connection to xdebug) stoped working
i checked all the settings and everything seems to be configured
i restarted apache2 server few times (installed it and php using wapp)
and tried to reconfigure all.
nothing is working!
the strange thing is when i start a debuging session in netbeans
i can see that port 9000 is listening but for what i understand not in 
the right address

i attached a few screen captures with various settings
any help will be very appreciated!

Thanks a lot (also for your great tool)
Roy
Webmaster | 9 Apr 07:38 2012

Can't connect to Xdebug

I have installed NetBeans IDE 7.1.1 and want to be able to debug.

I’m running Windows XP 32-bit

Here’s my Summary based on phpinfo. The location to move the downloaded file in line 2 what also blank before installing xdebug.

 

 

 

 

XDEBUG EXTENSION FOR PHP | DOCUMENTATION | INSTALLATION

home | updates | download | documentation | contributing | license | support | issue tracker

 

If you like Xdebug, please consider buying a
"support agreement".

Or Flattr this website:

Tailored Installation Instructions

Summary

·  Xdebug installed: 2.1.4

·  Server API: Apache 2.0 Handler

·  Windows: yes - Compiler: MS VC9 - Architecture: x86

·  Zend Server: no

·  PHP Version: 5.3.8

·  Zend API nr: 220090626

·  PHP API nr: 20090626

·  Debug Build: no

·  Thread Safe Build: yes

·  Configuration File Path: C:\WINDOWS

·  Configuration File: C:\xampp\php\php.ini

·  Extensions directory:

You're already running the latest Xdebug version

But here are the instructions anyway:

  1. Download php_xdebug-2.1.4-5.3-vc9.dll

  2. Move the downloaded file to

  3. Update C:\xampp\php\php.ini and change the line
    zend_extension = \php_xdebug-2.1.4-5.3-vc9.dll

  4. Restart the webserver

If you like Xdebug, and thinks it saves you time and money, please have a look at the donation page.

 

 

This site and all of its contents are Copyright © 2002-2012 by Derick Rethans.
All rights reserved.

 

 

As you can see in line 2 of the Summary it did not tell me where to put the dll so I put it in c:\xampp\php

 

In the php.ini I set zend_extension = \php_xdebug-2.1.4-5.3-vc9.dll but that didn’t work so I then set it to zend_extension = "C:\xampp\php\php_xdebug-2.1.4-5.3-vc9.dll"

I also set the following 4 statements in the c:\xampp\php\ php.ini

xdebug.remote_enable = 0

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "localhost"

xdebug.remote_port = 9000

 

All four lines were commented out originally.

 

When I try to debug in NetBeans I only get a “waiting for connection (netbeans-xdebug)” indicator at the bottom but it never makes a connections.

 

Can you tell me what I need to do differently to get xdebug to work?

Thank you,

 

Don Nicoll

480.629.8400

 

Frank Fegert | 30 Mar 23:52 2012
Picon
Picon

Xdebug on AIX

Hello all,

while building Xdebug on AIX (6.1.7.1, with IBM XL C/C++ for AIX, V10.1)
i ran into some minor problems for which i'd like to propose the attached
patch against the v2.1.4 sources.

I'm also having trouble understanding why the Xdebug timing results differ
so fastly between Linux and AIX when displayed with KCachegrind (v0.5.1
on Debian). The Apache, PHP, Xdebug and PHP-application versions on both
platforms are - as well as the content - exactly the same. The only known
differences are the OS and the compilers (gcc vs. xlC) used. From test
runs with siege i'm seeing a factor of ~3 between the page delivery times
on Linux vs. AIX. The raw Xdebug profiles seem to support this, i'm seeing
factors between two and four when manually comparing the individual call-
grind cost lines in the raw profile output. Upon loading the profiles into
KCachegrind i get e.g.:

  Linux: "Total Time Cost: 17 600"
  AIX:   "Total Time Cost: 1 287 141"

for absolute time values. Does someone have an idea what causes these
huge differences?

Thanks & best regards,

    Frank Fegert
Attachment (php-xdebug.patch): text/x-diff, 4794 bytes
Klaus Dorsch | 14 Mar 15:26 2012
Picon

Zend API Version

Hello,

 

Would you please so nice to send me the  right Versionnumber of xdebug for the

Zend Engine API version 220060519 .

 

Thank you very much

 

Mit freundlichen Grüßen / Best Regards

 

Klaus Dorsch

 

 

Tel.:    0221 - 94 20 55 -33

Fax:    0221 - 94 20 55 -35

dorsch <at> truman.de

 

Truman Textilien GmbH

Widdersdorferstrasse 181-183

50825 Köln

 

Amtsgericht Köln: HRB 23490

Geschäftsführer: Roman Trude 

 

Kennen Sie schon unseren TRUMAN-Newsletter mit

Produktempfehlungen, Neuheiten und Spezialangeboten?

Registrieren Sie sich kostenlos unter

http://www.truman.de/Newsletter-anfordern/

 

Service-Zeiten, Montag bis Freitag von 09:00 bis 18:00 Uhr

 

 

Diese eMail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder

diese eMail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese eMail. Das unerlaubte

Kopieren sowie die unbefugte Weitergabe dieser eMail ist nicht gestattet.

 

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this

e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution

of the material in this e-mail is strictly forbidden.

 

 

 

David | 13 Mar 13:15 2012
Picon

How to debug php code run with exec()

Hi,

I'm trying to debug php code launched from a php "launcher" script with a exec() call. I'm being able to debug the "launcher" php code with vim + xdebug plugin, but I cannot debug any line of the php code executed with that exec() call.


Is there any way to do it? The XDEBUG_CONFIG environment variable is correctly set before the call to exec(). Also, launching the php code with something like exec("export XDEBUG_CONFIG="whatever"; cmd php PhpCodeICannotDebug.php") does not work either.


Regards,
David

Gmane