简体   繁体   中英

Installing XDebug 64bit on windows

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).

在此输入图像描述

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();

在此输入图像描述

Could anyone say where is the problem?

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 :

在此输入图像描述

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.

My solution:

zend_extension="W:\php\ext\php_xdebug-2.6.0beta1-7.0-vc14-x86_64.dll"

[XDebug] xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\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 = "W:\php" 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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM