[英]Installing XDebug 64bit on windows
我正在嘗試安裝XDebug。 我使用的是64位的Windows7。 我的PHP版本是5.6.3(使用phpinfo()得到這個;)。 我把xdebug文件放在php文件夾里面的ext文件夾下面(我將文件重命名為php_xdebug.dll)。
我將下面的代碼放在php.ini文件中並重新啟動了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"
但我無法看到下面的部分,而我是想看看使用phpinfo();
誰能說出問題出在哪里?
我覺得你弄亂了兩件事:
所以,既然你是在Windows上沒有穩定的64位版本的PHP 的是 ,你可以看到在這里 :
另外要測試這個,你可以做一個小技巧並運行這段代碼:
echo PHP_INT_MAX;
輸出:
9223372036854775807 //64bit
2147483647 //32bit
所以下載32位xdebug版本,一切都應該工作正常。
我的解決方案
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"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.