Using Xdebug on Vim
背景 Background
デバッグツール"Xdebug"というものを最近教えてもらった。
目標 Goal
- Vim上でステップ実行する
環境 Environment
手順 Operation
$ sudo yum -y install php-devel $ pecl install Xdebug
- Install Xdebug for Max
$ brew search xdebug php53-xdebug php54-xdebug php55-xdebug php56-xdebug $ php --version PHP 5.5.11 (cli) (built: Apr 12 2014 22:39:19) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies $ brew info php55-xdebug $ brew install php55-xdebug
- Setting xdebug.ini
Linux(/etc/php.d/xdebug.ini),
Mac(/usr/local/etc/php/5.5/conf.d/ext-xdebug.ini)にそれぞれ追記
動作確認
$ php -i | grep -i "xdebug"
- Setting .vimrc
NeoBundle 'joonty/vdebug'