をPhpStormを使用して、私のセットアップは次のとおりです。XdebugのはEC2 Linuxインスタンスにインストールされ、リモートデバッグ/開発のためにここで
デバッグ/ローカル環境から
IDE: PhpStorm 10
url for setting up my PhpStorm debugging: https://blog.jetbrains.com/phpstorm/2011/03/configure-php-debugging-in-phpstorm-2-0/
PHP interpreter version (local copy): 5.6
リモートAWS EC2-Linuxのセットアップを開発:
xdebug for php56-devel
I used this SO answer for my xdebug setup: https://stackoverflow.com/questions/37310833/installing-xdebug-on-php-5-6-amazon-linux-ami
このxdebugの設定は、リモートサーバ(ec2-linux)のphp.iniファイルにあります。
Add to /etc/php-5.6.ini the following line :
zend_extension = /usr/lib64/php/5.6/modules/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host= THE.IP.ADRESS.OF.THE.COMPUTER.THAT.WILL.REMOTE.DEBUG.THE.SERVER
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey = xdebug
でも、私はPhpStormのサーバーからの着信接続や、デバッグ用のデータを取得していないと思います。
私は間違っていますか?私は何を取りこぼしたか?
ポート9000が開いていることを確認しましたか? – Scopey
Xdebugセッションを開始するためにブックマークや拡張機能を使用していますか? PhpStormのデバッグを設定するためのURLは*本当に古いものです。 https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStormを参照してください。 –
はいポート9000は開いています。 – Dave2345