PHPのデバッグにNetbeansを使用しています。私はにアクセスできないphp.ini
ので、私は使用します.htaccess
:
php_value xdebug.remote_host "localhost"
php_value xdebug.idekey "netbeans-xdebug"
php_flag xdebug.remote_autostart Off
php_flag xdebug.remote_enable On
php_value xdebug.remote_port 9000
php_value xdebug.remote_handler dbgp
php_flag xdebug.profiler_enable on
php_flag xdebug.remote_connect_back On
php_flag xdebug.extended_info On
sub.mydomain.com
ポート8080および8090で実行されます。以前、このサーバーでEclipseでxdebugを使用しました。
sub.mydomain.com
サーバーにはphpinfo()
、上記の設定とともにインストールされたxdebugが一覧表示されます。
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans
Netbeansでは、「プロパティ」と「実行構成」のエントリを構成し、ポートとIDも一致しています(9000、netbeans-xdebug)。
多くの開発者がいsub.mydomain.com
ますが、誰かがポート9000を使用している場合、これは問題になる可能性がありますか?
それでも、Netbeansで「デバッグ」を実行すると、「接続を待機しています」というメッセージが永遠に表示されます。
私は何をしなければなりませんか?
編集:ローカルホストに修正