phpstorm xdebug vagrant ubuntu


xdebug.ini

sudo vi /etc/php5/mods-available/xdebug.ini


 xdebug.default_enable = 1  
 xdebug.idekey = "vagrant"  
 xdebug.remote_enable = 1  
 xdebug.remote_autostart = 0  
 xdebug.remote_port = 9000  
 xdebug.remote_handler=dbgp  
 # xdebug.remote_log="/var/log/xdebug/xdebug.log"  
 xdebug.remote_host=10.0.2.2 ; IDE-Environments IP, from vagrant box.  


php.ini

sudo vi /etc/php.ini

 # implicit_flush = Off  
 implicit_flush = On  


set break point






click debug


reference: http://www.sitepoint.com/install-xdebug-phpstorm-vagrant/
http://qnibus.com/blog/phpstorm%EC%97%90%EC%84%9C-xdebug-%EC%84%A4%EC%A0%95%EA%B3%BC-%ED%85%8C%EC%8A%A4%ED%8A%B8/


댓글

가장 많이 본 글