我試圖讓我的php調試器爲NetBeans在Ubuntu上工作。當我嘗試啓動調試會話時,它會嘗試永久建立連接,但最終會給我一條錯誤消息,指出沒有可用的netbeans-xdebug連接。我已經安裝了php5-xdebug,但是當我嘗試使用phpinfo()查看它時,它不顯示。我的PHP /的Apache2/php.ini中有幾行代碼:已安裝XDebug,但未顯示在phpinfo()中並且不起作用
zend_extension=/usr/lib/php5/20090626/xdebug.so
[debug]
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
; General
xdebug.auto_trace=off
xdebug.collect_includes=on
xdebug.collect_params=off
xdebug.collect_return=off
xdebug.default_enable=on
xdebug.extended_info=1
xdebug.manual_url=http://www.php.net
xdebug.show_local_vars=0
xdebug.show_mem_delta=0
xdebug.max_nesting_level=100
;xdebug.idekey=
; Trace options
xdebug.trace_format=0
xdebug.trace_output_dir=/tmp
xdebug.trace_options=0
xdebug.trace_output_name=crc32
; Profiling
xdebug.profiler_append=0
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=crc32
正如你所看到的,我試圖解決它自己,但我不能得到它的工作。任何幫助將不勝感激......
請,任何人 叫@ /var/www/testxdebug.php:8 ... – 2012-07-05 09:26:24
你確定這個文件在那條路上嗎? – fedmich 2012-07-05 09:33:02
是的,檢查,以及它在那裏... – 2012-07-05 09:38:33