2012-01-21 33 views
2

Netbeans 7.0.1 IDE、Windowsで実行7 64ビットです。私はXAMPP 1.7.2を通してPHPをインストールしました。 phpinfo()を実行すると、PHPのバージョンが5.3.1、XDebugのバージョンが2.0.6-devと表示されます。 netbeans.orgNetbeansでPHPデバッグを実行できません - XDebug

ウェブページはphp.iniのファイルにコメント解除するためにいくつかのエントリを言及しており、互換性のXDebug.dllがすでにセットアップを備えていることを述べています。 これらはのphp.iniファイルからエントリ...

[PECL] 
zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 

[XDebug] 
xdebug.remote_port = 9000 
xdebug.remote_host = 127.0.0.1 
xdebug.remote_handler = "dbgp" 
xdebug.remote_enable = 1 
xdebug.profiler_enable = 0 
xdebug.profiler_append = 0 
xdebug.profiler_enable_trigger = 0 
xdebug.profiler_output_name = "xdebug_profile.%p" 
xdebug.profiler_output_dir = "C:\xampp\tmp" 
xdebug.trace_output_dir = "C:\xampp\tmp" 
xdebug.idekey = "netbeans-xdebug" 

ある相続人は、NetBeans IDEからのデバッガの設定のスナップショットです。 enter image description here

セッションデバッガウィンドウはNetBeansの-xdebugのセッションが実行されて表示されません。 enter image description here

これらの設定がすべて完了しても、デバッガはまだ実行されていません。

TCPViewを使用してポートをチェックしたところ、ポート9000は空き状態です。ファイアウォールも無効になっています。

お願いします。

答えて

0
[zend] 
zend_extension = "path_to_xdebug" 
xdebug.remote_enable=On 
xdebug.remote_host="localhost" 
xdebug.remote_port=9000 
xdebug.remote_handler="dbgp" 
xdebug.profiler_enable = On 
xdebug.profiler_output_dir = C:\Windows\temp 
xdebug.dump_globals=On 
xdebug.show_exception_trace=On 
xdebug.collect_params=4 

これを試してください。 php.iniを保存します。 PCを再起動します。

+0

OK。それ以外に、Netbeansではどのような変更が必要ですか? –

+0

それは動作する必要があります。個人的な助けが必要な場合は、skype経由で私に連絡してください:tural.teyyuboglu –

0

私はこの質問が古いことを知っていますが、私は同様の問題を抱えていました。私のセットアップは、私がUbuntuを使用していることを除いてあなたと同じです。私はNetbeans内で単にPHPプロジェクトにするだけで動作させることができました。明らかに、単一のファイルをデバッグすることはできません。

既存のコードベースからプロジェクトを作成し、[ファイル] - > [新規プロジェクト]を実行して、プロジェクトメタデータを別の場所に保存することもできます。ここで

は私のphp.iniファイルからの抜粋です:

[xdebug] 
zend_extension=xdebug.so 
xdebug.remote_enable=1 
xdebug.remote_host=localhost 
xdebug.remote_port=9000 
xdebug.remote_handler="dbgp" 
xdebug.profiler_enable = On 
xdebug.profiler_output_dir = /tmp 
xdebug.dump_globals=On 
xdebug.show_exception_trace=On 
xdebug.collect_params=4 

あなたがphp.iniを編集した後、サーバーとNetbeansのを再起動していることを確認します。

関連する問題