Debugging with Xdebug on Sublime Text 3

Step 1 : Add following lines to your php.ini


After this, restart your local server( MAMP, WAMP, XAMP, etc…. ).

Step 2 : Install “Xdebug client” from package control. ( Press command/ctrl + shift + p and write “Install package” and press enter. And then write “Xdebug client” )

Step 3 : Open root of your project in sublime and do “save project as” on the root of the project. Then open that project file and add following lines ( Change url to your site )

"settings": {
"xdebug": {
"url": "http://localhost:8888/wordpress/",

Save the above project file and now from the sublime do this

you will see like ?XDEBUG_SESSION_START=sublime.xdebug. That means your xdebug session is started.

Step 4 : Add break point where you want to debug code. Go to particular line and do this.

Now go the page on the browser where that code executes.

You will see sub screens in sublime like this:

That’s it!!!! Congrats!!!!

Video for who doesn’t like to read.

Related Articles

PHPCode Sniffer + Sublime on windows

Things you need for: cmder composer Sublime Text 2/3 We are going to install using composer, because it will automatically install related packages. So no…

WordCamp Mumbai

Whooaaaaaaaaa…!!!!!!!!!!!! Mumbaaaaaaaaiiiiiiiiiiiiiiiii…………………………………… Mayanagari…….. This was my 2nd WordCamp and it was at Mumbai. This WordCamp was like medicine for me as I had some problems…

Install wp-cli on windows

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser.

So I am going to tell you short, simple and easy way that how to use wp-cli on windows system.

The last day ( છેલ્લો દિવસ )

Hi there, The last day, yes I am talking about the last day of the year 2016. Another year passed and I became 26 in…

How to Create Child-theme in WordPress Step by Step very easy

Video for who doesn’t like to read ;). And if you like the video then subscribe my channel and share this with others who has…


Leave a Reply