2016-08-23 15 views
0

私のXDebug拡張がnetbeansとの接続を確立していません。以下は、私がphp.iniファイルに設定した設定です:XDebugがNetBeansで接続を確立していません

[XDebug] 
zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 
xdebug.remote_autostart=on 
xdebug.remote_enable=on 
xdebug.remote_enable=1 
xdebug.remote_handler="dbgp" 
xdebug.remote_host="localhost:8080" 
;xdebug.remote_connect_back=1 
xdebug.remote_port=9000 
xdebug.remote_mode=req 
xdebug.idekey="netbeans-xdebug" 

私は問題を理解する際に助けてください。どんな助けもありがとう。

+0

'xdebug.remote_connect_back'がコメントアウトされました –

答えて

0

Netbeans IDEでPHPコードをデバッグするには、NetbeansでXDebugを有効にする必要があります。これを行うにはTools - Optionsと入力してPHPタブを選択し、ファイルのXDebug設定と一致するデバッグポートとセッションIDを確認してください。その後OKをクリックします。

php.iniを次のように変更してください。

[XDebug] 
zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 
;xdebug.profiler_append = 0 
;xdebug.profiler_enable = 1 
;xdebug.profiler_enable_trigger = 0 
xdebug.profiler_output_dir = "C:\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" <--- here 
xdebug.trace_output_dir = "C:\xampp\tmp" 

Apacheサーバー[XAMPPまたはWAMP]を再起動します。

ブラウザで が表示されない場合は、PHPバージョンタブを選択して右クリックして内容をコピーし、hereに貼り付けてください。 XDebugの古いバージョンをお持ちの場合は、最新のphp_xdebug.dllファイルをダウンロードしてください。それをC:\xampp\php\ext\ディレクトリにコピーすると完了です。

+0

あなたのソリューションを試しましたNetbeansはxdebugに接続できません。永遠に接続し続けます。 – Zawar

+0

この[Stackoverflowスレッド](http://stackoverflow.com/questions/17613726/netbeans-shows-waiting-for-connection-netbeans-xdebug)と[this](http://www.devside.net/wamp/)を確認してください。 -server/netbeans-waiting-for-connection-netbeans-xdebug-issue) – Shashanth

+0

ああ!それは最終的に働いた。感謝します。私はあなたの設定を貼り付けるだけです。ポート= 9000を追加するのを忘れました。それが働いてくれてありがとう。 – Zawar

関連する問題