Answer the question
In order to leave comments, you need to log in
How to install and configure xDebug for Sublime?
Friends, has anyone managed to install and configure xDebug for Sublime?
I tried kindari and motomo both don't work.
xDebug is installed, at the start of debugging in subLIme, there is just emptiness in the windows where the data should be, and silence, both in the first and second cases. Doesn't throw any errors or anything.
Links to the actual plugins:
https://github.com/martomo/SublimeTextXdebug/tree/master#installation
https://github.com/Kindari/SublimeXdebug
Everything seems to be according to the instructions, no errors.
Surface Pro 2, Windows 8.1, XAMPP (PHP 5.4)
Answer the question
In order to leave comments, you need to log in
It is not enough to install a hdebug, you need to be able to use it
; firstly, you need to make sure that it is connected at all. it's in phpinfo
and secondly, in order for the hdebug to be activated, the browser must send a special header. In order for the browser to want to do this, you need to install the plugin. for firefox this plugin is called the easiest xdebug.
thirdly, in order for hdebug and your IDE to understand each other, the IDE must listen on a specific port. this port is set in php.ini and defaults to 9000. Also, sometimes the IDE waits for the xdebug to send a key, eg NETBEANS-XDEBUG. what awaits sublime - I don't know, see the docks. maybe it should be the SUBLIME-XDEBUG key or something else. this key is set in two places - in your IDE and in the mentioned firefox plugin
fourthly, the hdebug has three modes - step-by-step debugging, tracer and profiler. tracer and profiler do not access the IDE, but dump the result into files. The profiler result is read by wincachegrind (in Windows) or kcachegrind (in sneakers).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question