本文介紹了Netbeans + Xdebug + php 不工作的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我的netbeans不能使用xdebug斷點,我的配置看起來是正確的,所以我第一次配置我跑起來就停止調試,從那以后第一次就再也沒有工作過,有人遇到過這個問題嗎?我的netbeans版本是6.8,php版本是2.5.2.
My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then has never worked, someone had this problem? The version of my netbeans is 6.8 and the version of php is 2.5.2.
我的 php.ini:
my php.ini:
zend_extension_ts = d:wampinphpphp5.2.5extphp_xdebug-2.0.2-5.2.5.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug
xdebug.profiler_enable=1
推薦答案
就我而言,這行需要包含在 php.ini 中:
In my case this line needed to be included in the php.ini:
xdebug.remote_autostart=on
這里是 XDebug 的配置部分:
Here is the configuration section for XDebug:
[xdebug]
xdebug.remote_enable = on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
xdebug.remote_autostart=on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"
這篇關于Netbeans + Xdebug + php 不工作的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!