LoginSignup
0
0

More than 5 years have passed since last update.

Homestead Vagrant でリモートデバッガを有効にする方法

Last updated at Posted at 2017-03-22

Homestead デフォルトで xdebug が有効でないので、設定してやる必要がある。

具体的には、/etc/php/7.1/cli/conf.d/99.xdebug.iniとかを作成して以下の内容を書き込む

zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.max_nesting_level = 512

Homestead で組み込むなら after.sh とかに以下を追加

sudo touch /etc/php/7.1/cli/conf.d/99.xdebug.ini
sudo chmod 777 /etc/php/7.1/cli/conf.d/99.xdebug.ini

sudo cat << EOS > /etc/php/7.1/cli/conf.d/99.xdebug.ini
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.max_nesting_level = 512
EOS
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0