2012-05-01 4 views
2

私のubuntu serverマシンにxdebugをインストールしようとしましたが動作しません。私はそれが動作していないことを知っている理由は、var_dumpの出力は色付けされていないし、netbeansを使用して接続することもできません。xudbug 2.1.4をubuntu server 5.3.6-13ubuntu3.6にインストールします。

私はここで

http://xdebug.org/wizard.php 

にはXdebugをインストールする方法について仕立て指示に従ったが、私のphpinfo分析の出力が何であったかである:

Xdebug installed: no 
Server API: Apache 2.0 Handler 
Windows: no 
Zend Server: no 
PHP Version: 5.3.6-13 
Zend API nr: 220090626 
PHP API nr: 20090626 
Debug Build: no 
Thread Safe Build: no 
Configuration File Path: /etc/php5/apache2 
Configuration File: /etc/php5/apache2/php.ini 
Extensions directory: /usr/lib/php5/20090626 

推奨Wizardファイルの名前はxdebugのでした-2.1.4.tgz

phpizeの出力は

Configuring for: 
PHP Api Version:   20090626 
Zend Module Api No:  20090626 
Zend Extension Api No: 220090626 

私のphpinfoは今ここに、インストールxdebugのを示してい、それがどのように見えるかです:

enter image description hereここ

は私のphp.ini

zend_extension = /usr/lib/php5/20090626/xdebug.so 
xdebug.profiler_output_dir = "/var/log/apache2/xdebug" 
xdebug.profiler_output_name = "cachegrind.out.%p" 
xdebug.profiler_enable =1 
xdebug.profiler_append=1 
xdebug.extended_info=1 
xdebug.remote_enable=1 
xdebug.remote_handler="dbgp" 
xdebug.remote_mode=req 
xdebug.remote_host=192.168.2.13 
xdebug.remote_port=9000 
;xdebug.idekey=xdebug 
xdebug.idekey=netbeans-xdebug 
xdebug.remote_connect_back=1 
xdebug.remote_log="/var/log/apache2/xdebug_remote.log" 
xdebug.show_exception_trace=0 
xdebug.show_local_vars=9 
xdebug.show_mem_delta=0 

lsb_releaseの出力に持っているものです - 私のコンピュータのaは

No LSB modules are available. 
Distributor ID: Ubuntu 
Description: Ubuntu 11.10 
Release:  11.10 
Codename:  oneiric 

です。phpinfoに表示されているバージョンは5.3.6-13ubuntu3です。 .6

答えて

4

色については、おそらくhtml_errors=1をphp.iniに設定するとよいでしょう。

netbeansの問題(実際には1つの質問で問題を組み合わせるべきではありません)、どのIPアドレスがあなたのマシンでPHPを実行していますか、どのIPアドレスでnetbeansを実行していますか? xdebug.remote_host設定には、netbeansを実行しているIPアドレスが含まれている必要があります。生成しているリモートログファイルにも接続試行が必要です。

+0

ありがとうございました – Yasser1984

関連する問題