1 | 21 Jun 15:08 2012
Picon

xdebug

Hello,

I working with webMatrix version 1., Php 5.3, IIS 7 win7 64 bits.

 

I try to add the Xdebug  and It's not working . I don't see error message on the browser when there is an error (like division in 0).

I send to you the ini file and the results of the php –m.

Please help

Thanks Veronic

[PHP Modules]
bcmath
calendar
com_dotnet
Core
ctype
curl
date
dom
ereg
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
soap
SPL
standard
tidy
tokenizer
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib

[Zend Modules]
Xdebug

Attachment (php.ini): application/octet-stream, 69 KiB
sandstorm140@gmail.com | 16 Jun 15:02 2012
Picon

Issue with remote debugging

Greetings,

I have two computers on a network, one of which has wamp 2.2e installed.
I am using phpDesigner 8 and have also tested with WeBuilder 2011. 
Everything works perfectly on the server computer wamp is installed on, 
however when I try to debug a script on another networked computer, 
nothing happens. The program just sits there not entering debug mode. I 
have all firewalls disabled and tried using another port than 9000.

On pastebin.com, I have pasted some more information that may be of use:

phpinfo(): http://pastebin.com/yzeid3Bi
php.ini: http://pastebin.com/1UXWpEYf

Thank you ever so kindly!

  -Peter

phpnewnew | 3 Jun 01:36 2012
Picon

thank for u help.

Hi:
I has a question ask to u.
when i use xdebug_get_code_coverage and result some code like 1 2 -1 -2 0...
I want to know what is the significance of these figures.
I know 1 is to perform.
Thx for u help.
My English is so poor. Sorry

phpnewnew

Kiss Gergő | 2 Jun 23:44 2012
Picon

Xdebug output problem

Dear Sir or Madam,

I would have a question about xdebug, because I haven't find answer on it. I use XAMPP with PHP 5.3.8 on Windows 7 32bit operation system. I installed Netbeans 7.1.2 beacause I would like to debug my PHP programs with it and the xdebug. When I put breakpoints in my code it stops well and I see the changes of values of the variables while I debugging, so it is nearly perfect, but I can't see the output unless the code runs to the end. 

I wrote a sample code:

echo '1';
echo '2';
echo '3';   
phpinfo();
echo '4';
echo '5';

It is interesting because, the echo 1-2-3 don't appear in my browser or on the debugger output, but when I step through the phpinfo() function, the 1,2,3 and the phpinfo functions output is written into the browser and the output panel too. But after this the echo 4 and 5 don't written out until the debugging ends.

I tested my phpinfo() output on your webpage which checks if the settings in php.ini is correct or not and it tells everything is OK.

I know another one person who has the same problem.

I hope you can help me.

Thank you,

Yours faithfully,

Gergő Kiss

Hen Barshak | 31 May 09:38 2012

can't compile xdebug2.2 on windows

Hi,

I am trying to compile xdebug on windows.

I am using php-5.3.5-dev-devel-VC9-x86 package that contains phpize.bat.

 

Console output:

 

C:\Users\win764\Desktop\xdebug-2.2.0>c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\phpize.bat

Rebuilding configure.js

c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86

module ...

Now run 'configure --help'

 

C:\Users\win764\Desktop\xdebug-2.2.0>configure.bat --help

Options that enable extensions and SAPI will accept 'yes' or 'no' as a

parameter. They also accept 'shared' as a synonym for 'yes' and request a

shared build of that module. Not all modules can be built as shared modules;

configure will display [shared] after the module name if can be built that

way.

 

  --enable-debug             Compile with debugging symbols

  --enable-object-out-dir    Alternate location for binary objects during

                             build

  --enable-debug             Compile with debugging symbols

  --enable-debug-pack        Release binaries with external debug symbols

                             (--enable-debug must not be specified)

  --with-prefix              PHP installation prefix

 --with-mp                  Tell VC9+ use up to [n,auto,disable] processes

                             for compilation

  --with-snapshot-template   Path to snapshot builder template dir

  --with-php-build           Path to where you extracted the development

                             libraries

                             (http://wiki.php.net/internals/windows/libs).

                             Assumes that it is a sibling of this source dir

                             (..\deps) if not specified

  --with-extra-includes      Extra include path to use when building

                             everything

  --with-extra-libs          Extra library path to use when linking everything

  --with-xdebug              Xdebug support

 

C:\Users\win764\Desktop\xdebug-2.2.0>configure.bat --with-xdebug

Saving configure options to config.nice.bat

Checking for cl.exe ...  <in default path>

  Detected compiler MSVC9 (Visual C++ 2008)

  Detected 32-bit compiler

Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin

Checking for nmake.exe ...  <in default path>

Checking for lib.exe ...  <in default path>

Checking for bison.exe ...  <in default path>

Checking for re2c.exe ...  <in default path>

  Detected re2c version 0.13.5

Checking for zip.exe ...  <in default path>

Checking for lemon.exe ...  <not found>

Checking for mc.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64

Checking for mt.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64

 

Build dir: Release_TS

PHP Core:  php5ts.dll and php5ts.lib

 

Checking for cl.exe ...  <in default path>

  Detected compiler MSVC9 (Visual C++ 2008)

AC_DEFINE[COMPILER]="MSVC9 (Visual C++ 2008)": is already defined to "MSVC9 (Visual C++ 2008)"

AC_DEFINE[PHP_COMPILER_ID]="VC9": is already defined to "VC9"

  Detected 32-bit compiler

AC_DEFINE[ARCHITECTURE]="x86": is already defined to "x86"

Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin

Checking for nmake.exe ...  <in default path>

Checking for lib.exe ...  <in default path>

Checking for bison.exe ...  <in default path>

Checking for re2c.exe ...  <in default path>

  Detected re2c version 0.13.5

Checking for zip.exe ...  <in default path>

Checking for lemon.exe ...  <not found>

Checking for mc.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64

Checking for mt.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64

 

Build dir: Release_TS

PHP Core:  php5ts.dll and php5ts.lib

AC_DEFINE[HAVE_STRNLEN]=1: is already defined to 1

 

AC_DEFINE[PHP_DIR]="c:\\Users\\win764\\Desktop\\php-5.3.5-dev-devel-VC9-x86": is already defined to

"c:\\Users\\win764\\Desktop\\php-5.3.5-dev-devel-VC9-x86"

Enabling extension C:\Users\win764\Desktop\xdebug-2.2.0 [shared]

 

Creating build dirs...

Generating files...

Generating Makefile

Done.

 

 

 

Enabled extensions:

----------------------

| Extension | Mode   |

----------------------

| xdebug    | shared |

----------------------

 

 

-------------------------------------------

|               |                         |

-------------------------------------------

| Build type    | Release                 |

| Thread Safety | Yes                     |

| Compiler      | MSVC9 (Visual C++ 2008) |

| Architecture  | x86                     |

-------------------------------------------

 

 

Type 'nmake' to build PHP

 

C:\Users\win764\Desktop\xdebug-2.2.0>nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08

Copyright (C) Microsoft Corporation.  All rights reserved.

 

usefulstuff.c

xdebug.c

xdebug_code_coverage.c

xdebug_com.c

xdebug_compat.c

xdebug_handler_dbgp.c

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_handler_dbgp.c(305) : warning C4090: 'function' : differ

ent 'const' qualifiers

xdebug_handlers.c

xdebug_hash.c

xdebug_llist.c

xdebug_private.c

xdebug_profiler.c

xdebug_set.c

xdebug_stack.c

xdebug_str.c

xdebug_superglobals.c

xdebug_tracing.c

xdebug_var.c

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(219) : warning C4090: 'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(219) : warning C4090: 'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(437) : warning C4090: 'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(535) : warning C4090: 'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(748) : warning C4090: 'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(846) : warning C4090: 'function' : different 'cons

t' qualifiers

C:\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.c(1247) : warning C4090: 'function' : different 'con

st' qualifiers

xdebug_xml.c

        rc  /I c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86/include /n /fo Release_TS\php_xde

bug.dll.res /d FILE_DESCRIPTION="\"Xdebug\"" /d FILE_NAME="\"php_xdebug.dll\"" /d URL="\"http://www.

php.net\"" /d INTERNAL_NAME="\"XDEBUG extension\"" /d THANKS_GUYS="\"Thanks to Derick Rethans, Ilia

Alshanetsky, Harald Radi\"" c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\build\template.rc

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Microsoft (R) Incremental Linker Version 9.00.21022.08

Copyright (C) Microsoft Corporation.  All rights reserved.

 

/out:usefulstuff.exe

/out:Release_TS\php_xdebug.dll

/dll

/libpath:c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\lib\;c:\Users\win764\Desktop\php-5.3.5-

dev-devel-VC9-x86

Release_TS\Users\win764\Desktop\xdebug-2.2.0\usefulstuff.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_code_coverage.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_com.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_compat.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_handler_dbgp.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_handlers.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_hash.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_llist.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_private.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_profiler.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_set.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_stack.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_str.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_superglobals.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_tracing.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_var.obj

Release_TS\Users\win764\Desktop\xdebug-2.2.0\xdebug_xml.obj

c:\Users\win764\Desktop\php-5.3.5-dev-devel-VC9-x86\lib\php5ts.lib

kernel32.lib

ole32.lib

user32.lib

advapi32.lib

shell32.lib

ws2_32.lib

Dnsapi.lib

Release_TS\php_xdebug.dll.res

xdebug_var.obj : error LNK2019: unresolved external symbol _xdebug_globals_id referenced in function

_xdebug_var_export

xdebug_profiler.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_stack.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_superglobals.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_tracing.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

usefulstuff.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_code_coverage.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_handler_dbgp.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_private.obj : error LNK2001: unresolved external symbol _xdebug_globals_id

xdebug_stack.obj : error LNK2019: unresolved external symbol _xdebug_is_output_tty referenced in fun

ction _select_formats

Release_TS\php_xdebug.dll : fatal error LNK1120: 2 unresolved externals

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : re

turn code '0x2'

Stop.

 

C:\Users\win764\Desktop\xdebug-2.2.0>

 

I think that I am missing a library…

phpnewnew | 29 May 10:20 2012
Picon

thank for u help.

Hi:
I has a question ask to u.
when i use xdebug_get_code_coverage and result some code like 1 2 -1 -2 0...
I want to know what is the significance of these figures.
I know 1 is to perform.
Thx for u help.
My English is so poor. Sorry

phpnewnew

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


Gmane