Skip to content

Instantly share code, notes, and snippets.

@s-hiroshi
Last active November 13, 2015 00:42
Show Gist options
  • Save s-hiroshi/7636a487be54ac47712b to your computer and use it in GitHub Desktop.
Save s-hiroshi/7636a487be54ac47712b to your computer and use it in GitHub Desktop.
HomebrewでインストールしたPHP5.6のビルトインサーバーをPhpStormでデバッグする手順です。
* Xdebugはインストール済みであることを前提とします。
* MacOSでターミナルを利用します。
# Xdebugの設定ファイルを見つける
$ php --info | "grep \.ini"
# Xdebug設定ファイル編集
$ vi /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
[xdebug]
zend_extension="/usr/local/opt/php56-xdebug/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port="9000"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/path/to/your/tmp"
参考
https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment