xDebug and old wamp server with MS VC6 - php

Can you tell me, why i don't get xDebug extension in y PHP extensions list?
Wamp>PHP>PHP extensions is not xDebug.
PHP version:
Windows: yes - Compiler: MS VC6 - Architecture: x86
Zend Server: no
PHP Version: 5.3.5
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: C:\wamp\bin\apache\Apache2.2.17\bin\php.ini
Extensions directory: c:\wamp\bin\php\php5.3.5\ext
The compiler (MS VC6) that this PHP was build with, is no longer supported. Please upgrade to a version that was built with MS VC9.
So i download: Xdebug 2.1.2, PHP 5.3 VC6 (32 bit) (MD5: adb792dc75c79384f987061f12e0934a)
Copy files to ext folder, add this lines into php.ini file:
[Xdebug]
zend_extension = "c:/wamp/bin/php/php5.3.5/ext/php_xdebug.dll"
xdebug.remote_enable=1
;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
What's wrong?

This works fine me:
[XDEBUG]
zend_extension="c:/path/to/your/extensions/php_xdebug-2.1.2-5.3-vc6.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
The crucial part for me was that I used zend_extension_ts instead of zend_extension.
You might also want to make sure you are changing the correct version of php.ini. For command line PHP this can be obtained buy running this command:
php -i | findstr -i php.ini
Look for "Loaded Configuration File" line.

Related

XDEBUG 2.3.3 not showing in phpinfo() no matter what (XAMPP 1.8.2 PHP 5.4.31 )

I've read every post out there (I think), and after 2 days hunting this I am still stuck. The goal is to use xDebug with Eclipse, but I cannot get past loading xDebug in the first place.
I am using XAMPP 1.8.2 with PHP 5.4.31, and per XDEBUG analyzer (below) downloaded the file suggested.
Tailored Installation Instructions
Summary
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.4.31
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: C:\xampp\php\php.ini
Extensions directory: C:\xampp\php\ext
Instructions
Download php_xdebug-2.3.3-5.4-vc9.dll
Move the downloaded file to C:\xampp\php\ext
Edit C:\xampp\php\php.ini and add the line
zend_extension = C:\xampp\php\ext\php_xdebug-2.3.3-5.4-vc9.dll
Restart the webserver
I have edited php.ini in my XAMPP (located in C:\xampp) with the following:
[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.3.3-5.4-vc9.dll
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9001
I see no errors in any logs for my Apache server. What am I missing?

Installation of Xdebug in wamp(2.0)

In php.ini file
;xdebug Configuration
zend_extension="C:/TenthPlanet/wamp/bin/php/php5.3.0/ext/php_xdebug-2.1.2-5.3-vc6.dll"
zend_debugger.allow_hosts=localhost
zend_debugger.expose_remotely=always
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:/TenthPlanet/wamp/tmp/xdebug"
xdebug.remote_enable=1
xdebug.remote_autostart=On
xdebug.remote_host=localhost
xdebug.remote_mode=req
xdebug.remote_log="C:/TenthPlanet/wamp/tmp/xdebug"
But its not installing. When i copied my phpinfo source in xdebug.org/wizrad.php its saying my compiler MSVC6 needs to be upgrade MSVC9 (microsoft visual studio C++). Then I installed the latest one but its not working.
Its not installing properly guys. So whats is the problem ?
My configuration is
PHP - 5.3.0
Apache - 2.2.11
Try using the php_xdebug-2.2.3-5.3-vc9.dll instead or the php_xdebug-2.1.2-5.3-vc6.dll
Alternatively run this wizard on the XDEBUG site, do as it says and copy and paste the output from your phpinfo into it and it will tell you which version you need automatically.

xdebug issue with IIS and php 5.2

I have searched for this question so far no success...
I am using php 5.2 (IDE:netbean) with IIS 8 as web server. I installed php_xdebug-2.2.2-5.2-vc9-nts xdebug.
Here is my php.ini changes:
zend_extension="C:\php\php_xdebug-2.2.2-5.2-vc9-nts.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.idekey="netbeans-xdebug"
then I restarted IIS; but when I copy paste html of phpinfo() in xdebug wizard I got below:
Summary
Xdebug installed: no
Server API: CGI/FastCGI
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.2.17
Zend API nr: 220060519
PHP API nr: 20060613
Debug Build: no
Thread Safe Build: no
Configuration File Path: C:\WINDOWS
Configuration File: C:\PHP\php.ini
Extensions directory: .
Instructions
Download
Move the downloaded file to .
Edit C:\PHP\php.ini and add the line
zend_extension = .\
Restart the webserver
it seems that xdebug was not installed successfully. any idea?

Install xdebug 2.1.4 on ubuntu server 5.3.6-13ubuntu3.6

I have tried to install xdebug on my ubuntu server machine and it's not working. The reason I know it's not working is that the output of var_dump is not colorized, nor can I connect to it using netbeans.
I followed the tailored instructions on how to install xdebug on
http://xdebug.org/wizard.php
Here is what the output of my phpinfo analysis was:
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.3.6-13
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc/php5/apache2
Configuration File: /etc/php5/apache2/php.ini
Extensions directory: /usr/lib/php5/20090626
The name of the file that wizard recommended was xdebug-2.1.4.tgz
The output of phpize was
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
My phpinfo now does show xdebug installed, here is how it looks like:
Here is what I have in my php.ini
zend_extension = /usr/lib/php5/20090626/xdebug.so
xdebug.profiler_output_dir = "/var/log/apache2/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.profiler_enable =1
xdebug.profiler_append=1
xdebug.extended_info=1
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_host=192.168.2.13
xdebug.remote_port=9000
;xdebug.idekey=xdebug
xdebug.idekey=netbeans-xdebug
xdebug.remote_connect_back=1
xdebug.remote_log="/var/log/apache2/xdebug_remote.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
The output of lsb_release -a on my computer is
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
PHP version shown on phpinfo is 5.3.6-13ubuntu3.6
For the colours, you probably want to set html_errors=1 in php.ini as well.
As for the netbeans issue (you really should not combine issues in one question!), which IP addresses do your machine running PHP, and which IP address does your machine running netbeans have? The xdebug.remote_host setting should contain the IP address of the one running netbeans. The remote log file that you're generating should have connection attempts in it too.

can't install XDEBUG on windows?

my php version is PHP Version 5.3.6.
Xdebug setting in php.ini:
[Xdebug]
zend_extension_ts="D:\php\ext\php_xdebug-2.1.2.dll"
xdebug.remote_enable=1
;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
i have installed PHP 5.3 VC6 (32 bit)/ PHP 5.3 VC9 (32 bit). they are both failed.
when typed "php --ini" on cmd . it shows:
in order to find the correct binary to use, please follow the instructions at http://xdebug.org/find-binary.php
cheers,
Derick
Instead of attempting to mix 'n match modules, try a stock download from Apache Friends. http://www.apachefriends.org/en/xampp-windows.html
XAMPP comes with xdebug right out of the box.
Looks like you just need to download the correct version of xdebug for your version of Windows / PHP. There are VC9 builds here, just select the appropriate one for 32 or 64 bit.
[http://nepuzz.com/index/detail/18][1]
You can check the above link and install xdebugger in sublime 3 with wamp server easily.
If you don't use Xamp.
Download windows binary corresponding your php version: https://xdebug.org/download
(optional) move downloaded file (php_xdebug.......dll in common location and rename it: for example xdebug.dll in C:\phpextensions\
Run php --ini in cmd to know where is the php.ini file (p.ex: C:\php\php.ini)
Edit C:\phpextensions\xdebug.dll and add following line:
zend_extension = C:\globally\debug.dll
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_autostart = 1
xdebug.remote_port = 9000
xdebug.show_local_vars = 1

Categories