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
Related
I have tried to enable the xdebug for this specific php version by changing the php.ini [XDebug] code to required format as below. Still no changes in the phpinfo.
zend_extension = "\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14-nts-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port=9000
I have tried with both nts & ts (32/64) xdebug versions. Please anyone help me out..
You definitely need to use the Thread Safe version and not the nts version
The XDEBUG extension must match the compiled version of your Apache and PHP i.e. if Apache/PHP are 32 bit then so must XDEBUG be 32bit
Try putting the drive letter into the zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14-nts-x86_64.dll line. Assuming your XAMPP is installed on C:
You also specify PHP7.0.1 in the title but you are using the XDEBUG for PHP7.1 If you are really using PHP7.0.1 then you need to use php_xdebug-2.5.1-7.0-vc14.dll
this is my php.ini file for xdebug
[Xdebug]
zend_extension=C:\wamp64\bin\php\php7.0.0\ext\php_xdebug-2.4.0-7.0-vc14-x86_64.dll
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir=C:\wamp64\tmp
but according to php info, remote enable is disabled.
If I go into phpstorm under interpreters it recognizes xdebug as the debugger. Let me know if you need more informatoini.
edit:
I have tried #lllypa sloution to no avail. I am using windwos 10, firefox, and wamp 3.0.0 64bit with php 7
I reinstalled the server to find this and it is still not working. I can access the localhost, and php scripts work but I can't debug.
[xdebug]
zend_extension = C:\wamp64\bin\php\php7.0.0\ext\php_xdebug-2.4.0-7.0-vc14-x86_64.dll
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="C:/wamp64/tmp"
xdebug.show_local_vars=0
As I can understand from the question and a tag, you're using Windows and WAMP, right? WAMP has multiple php.ini files:
%Apache folder%\bin\php.ini
%PHP folder%\php.ini
%PHP folder%\phpForApache.ini
As far as I remember, phpForApache.ini is the one that has "final" values, so see if it has xdebug settings. Or to be sure, that you are editing the right *.ini file, use WAMP app (on the taskbar click WAMP icon -> PHP -> php.ini).
Let us know if this helps or give us more details on your system and steps you're doing.
PS. Try adding these parameters to your settings:
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
And make sure you're running your project on the same host. And if phpstorm has some xdebug configuration - make sure port is the same.
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.
I am trying to get the following to setup work:
Windows 7 - 64-bit
XAMPP 1.7.4
XDebug [php_xdebug-2.1.0-5.3-vc9-x86_64.dll]
When I run phpinfo() from Xampps homepage, XDebug it is not listed anywhere. I checked the Apache error logs and there are no errors, so it seems to load the module without problem? I haven't used PHP in years so I have no clue why this isn't working.
[PHP.ini]
[XDebug]
zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.1.0-5.3-vc9-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
I think you don't have the right compiler version. Copy the output of your phpinfo onto this page and it will tell you which version you need.
Print out your
phpinfo();
and look at "Compilater" line
At home (win7x64 + wamp) => MSVC6 (Visual C++ 6.0)
So you need the vc6 version not vc9 version
I try using xdebug with NetBeans to debug PHP. I start debug, and NetBeans waits for ever for a connection with xdebug. I have NetBeans 6.8 (latest version) with the latest MAMP package installed on my mac.
My php.ini looks like this:
[xdebug]
;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
Finally, I had to add the idekey value like this:
xdebug.idekey="netbeans-xdebug"
now it works :-)
If your php.ini really looks like what you posted, you have to un-comment the zend_extension line (i.e. remove the ';' at its begninning), so Xdebug is actually loaded.
Then, make sure Xdebug is loaded, calling phpinfo() from a PHP file (just to be sure).
After that : I suppose there should be some options to configure the debugger in netbeans ? If so, is netbeans listening on port 9000 ? (The one you configured in php.ini)
The following settings worked for me with NetBeans 7.2 on Mountain Lion after restarting Apache:
zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
Mac/MAMP users: If you have tried all of the above and it still doesn't work, reboot your Mac. Restarting the servers through MAMP is not enough.
I used the following with XAMPP 1.8.2 and NetBeans 7.4 with success.
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.idekey="netbeans-xdebug"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = on
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_mode=req
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "C:\xampp\tmp"
for me worked this way (thank you guys +1) /o/
<pre>
zend_extension = "c:\xampp\php\ext\php_xdebug2.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler"dbgp"
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
</pre>
Config:
netbeans 7.3 - php 5.4 - xdebug 2.2 - xampp - win7(32bits)
I've read that xdebug doesn't work with the version of PHP what ships with OS X. I got it to work by updating php from version 5.4 to 5.5, using a handy package from php-osx.liip.ch, including precompiled xdebug extension. Use this command:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
Note that this will leave your default php installation intact, but disable it in httpd.conf. Your new php.ini will be at "/usr/local/php5/lib/php.ini", with the xdebug config file at "/usr/local/php5/php.d/50-extension-xdebug.ini".
Setup:
OS X version 10.9.2
Sources:
http://coolestguidesontheplanet.com/upgrade-to-php-5-4-or-5-5-mac-osx-10-8-mountain-lion/