###前提・実現したいこと
Windows7の開発用PCに、PHPの開発環境としてNetbeans8.2を導入しようとしております。
XAMPP5.6.24と連携し、デバッグを行いたいです。
現状として、NetbeansからXDebugに対して接続が出来ず、ブレークポイントが効かない状態となっております。
XDebugのログは以下の通りです。
I: Connecting to configured address/port: localhost:9010. W: Creating socket for 'localhost:9010', WSAPoll: 10022. W: Creating socket for 'localhost:9010', WSAPoll: 10022. E: Could not connect to client. :-(
###該当のソースコード
php.iniの設定は以下の通りとなっております。
[xdebug] zend_extension = C:\xampp\php\ext\php_xdebug-2.5.0rc1-5.6-vc11.dll xdebug.remote_enable=1 xdebug.auto_start=0 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9010 xdebug.remote_log=C:\logtmp\remotelog.log xdebug.idekey=netbeans-xdebug xdebug.profiler_enable=1 xdebug.profiler_output_dir=C:\logtmp
###試したこと
◯XDebugのDLLの交換
XAMPPに元々同梱されているDLLだけでなく、XDebugの公式サイトのWizard(https://xdebug.org/wizard.php)を用いて提示されたDLLファイルに交換
(上述のphp.iniはその時の記述となります)
◯ポート番号の変更
ポートの衝突を疑い、9000番から9010番へ変更、Netbeans側も同じ数字に変更
◯Windowsファイアウォールの設定
httpd、及びNetbeansのファイアウォール設定を一旦削除し、起動時に再度許可
◯remote_hostの記述変更
「xdebug.remote_host」の設定を「127.0.0.1」に変更
◯サーバーパスの指定
実行構成の設定画面から、URLを毎回聞く設定にした上で、サーバーパスも統一
◯「xdebug.remote_connect_back」の適用
「xdebug.remote_connect_back」を「1」とする設定も試しました。
その際のログは以下の通りです。
I: Checking remote connect back address. I: Checking header 'HTTP_X_FORWARDED_FOR'. I: Checking header 'REMOTE_ADDR'. I: Remote address found, connecting to ::1:9010. W: Creating socket for '::1:9010', WSAPoll: 10022. E: Could not connect to client. :-(
いずれも結果は変わりませんでした。
###補足情報(言語/FW/ツール等のバージョンなど)
XAMPP v5.6.24 (PHP 5.6.24)
Netbeans 8.2
Windows7 64bit
XAMPPベースのため、実行構成は基本「ローカルWebサーバー」もしくは「スクリプト」で実行しています。
かなり万策尽きており、困っております。
何卒、お力添えをお願い致します。
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/12/16 04:01 編集