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