Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing XDebug 64bit on windows

Tags:

php

apache

xdebug

I am trying to install XDebug. I am using Windows7 of 64 BIT. My PHP version is 5.6.3 (got this using phpinfo();). I placed below xdebug file in ext folder inside php folder (I renamed the file as php_xdebug.dll).

enter image description here

I placed below code in php.ini file and restarted apache.

[XDebug]
zend_extension = "D:\XAMPP\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\XAMPP\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "D:\XAMPP\tmp"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

But I could not see the below section while I was trying to see using phpinfo();

enter image description here

Could anyone say where is the problem?

like image 352
abu abu Avatar asked Mar 21 '26 07:03

abu abu


1 Answers

I think you messed 2 things up:

  1. If your computer has 32/64 bit
  2. And if your PHP version is a 32/64 bit version

So since you are on windows there is no stable 64 bit PHP version yet, as you can see here:

enter image description here

Also to test this you can do a little trick and run this code:

echo PHP_INT_MAX;

output:

9223372036854775807  //64bit
2147483647           //32bit

So download the 32 bit xdebug version and everything should work fine.

like image 193
Rizier123 Avatar answered Mar 23 '26 21:03

Rizier123



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!