SublimeText xDebug: Starts but it doesn’t stop in any breakpoint [SOLUTION]

If you, like me, have installed and configured xDebug in your local and doesn’t stop on any breakpoint, but everything seems fine, this is the solution!

It’s possible that for some reason some app or process is using the same port as xDebug, so the solution is to update its port and ualla!

Open your php.ini (/usr/local/etc/php/X.X/php.ini for OSX) or even better the file ext-xdebug.ini (/usr/local/etc/php/X.X/conf.d/ext-xdebug.ini for OSX) and look for the xdebug.remote_port and set it to another port, lets say 9001 (xdebug.remote_port = 9001)

Restart apache!

Finally open xDebug user preferences in Sublime Text and set the port to the same number.

“port”: 9001,

Try again!

If this wasn’t the solution for your issue here is my complete configuration for xDebug on my local:

xdebug.remote_enable = 1
xdebug.remote_host = “”
xdebug.remote_port = 9001
xdebug.remote_handler = “dbgp”
xdebug.remote_mode = req
xdebug.remote_connect_back = 1

Hope this helps…