LoginSignup
2
1

More than 5 years have passed since last update.

Vagrant PHP CLI Xdebug 方法

Last updated at Posted at 2018-04-04

前略

最近なんだかんだでフリーランスなりました
お仕事の話あればください!

という報告ついでにメモ的備忘録

後略

vagrant内でphpを実行した時にxdebugしたくなったらこうすれば良いようです

php \
    -dxdebug.remote_enable=1 \
    -dxdebug.zend_extension=/usr/lib64/php/modules/xdebug.so \
    -dxdebug.remote_port=9000 \
    -dxdebug.remote_autostart=On \
    -dxdebug.idekey=PHPSTORM \
    -dxdebug.remote_host=192.168.33.1 \
    -f hoge.php 

php.ini に書くオプションを直接渡す感じ

堅苦しいセキュリティソフト入ってるとXdebugの邪魔したりするのやめてほしいです!
すごく嵌りました!!💢

最近はフロント側の動きが目まぐるしいのでvueとか触ってみてます

2
1
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
2
1