とをセットphp.ini
します。phpstorm イベントログで php スクリプト出力をデバッグしようとしています:Debug config
phpstorm
"Error running script.php: Port 9000 is busy"
php.ini の終わり:
[XDebug]
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port="9000" (the default port is 9000)
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir="/etc/php5/xdebug/profiler_output_dir"
pStorm のデバッグ ポートも 9000 に設定されています netstat -na
。
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
他のポートに設定するとどうなりますか。たとえば、設定すると10001
仕事をしているようです。または、それを適切に機能させる方法。仕組みを理解しているかどうかはわかりませんxDebug
。Debug("script.php")(Shift+F9)
ファイルにブレークポイントを設定してphpstormで実行するようなものですか?
誰かがアイデアを持っていますか?
編集:
から: http://xdebug.org/docs/remote
xdebug.remote_port
Type: integer, Default value: 9000
The port to which Xdebug tries to connect on the remote host. Port 9000 is the default for both the client and the bundled debugclient. As many clients use this port number, it is best to leave this setting unchanged.
ポートを 9000 以外に変更するとどうなりますか? 50k を超えるかもしれません。