Installing Xdebug with Sublime Text in Ubuntu is little bit tricky, but you can
easily install it if you follow along this post. Lets get started.
$ php -v
PHP 5.3.10-1ubuntu3.8 with Suhosin-Patch (cli) (built: Sep 4 2013 20:00:51)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
Note: If your Output is same like mine then you are good to go. If not the type
following command to install it.
Note: If you don't find the path of the file using the above command, use following
command to search in entire file system
Step 3: Next step is to edit xdebug.ini file using the following commands
$ cd /etc/php5/apache2/conf.d
$ sudo gedit xdebug.ini
zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_enable_trigger=On
xdebug.profiler_output_dir=/tmp
xdebug.max_nesting_level = 200
xdebug.remote_connect_back = 1
Note:In zend_extension field enter your xdebug.so file path. If you want to know
what all this means, you can refer Xdebug official website.
Step 1: Open Sublime text, open package manager (Ctrl + shift + p), type install
packages and select xdebug client.
Step 3: Add break point and start debugger using start debugging(launch browser)
option.
If You Liked This Post Please Take a Time To Share This Post
1205
0
Reddit
0
Delicious
16
Google +
1
35
Blogger
0
StumbleUpon