how do I configure xdebug into sublime text 3

Status
Not open for further replies.

DavidGo43

Dabbler
Joined
Aug 2, 2016
Messages
11
Hello,

So far I managed to configure xdebug in php and I type the command like pkg install php-xdebug and in that php.ini I have to add the

xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /tmp/profiler
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_autostart=1

then I restart the apache and then when I load my info.php page it contains the xdebug page that like this in that picture. After that then I follow the instruction on that link http://markonphp.com/debugging-xdebug-sublime-text-3/ for how install xdebug for sublime text 3. I install package for sublime text 3 and select xdebug client to install. After that then created a project folder called awesome.sublime-project and made into a new file. In that new file I created

{

"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"settings": {
"xdebug": {
"url": "http://myipaddress",
"path_mapping": {"//davidjonesfolder/davedataset/daveserver/usr/local/www/apache24/data/awesome" :
"{"//davidjonesfolder/davedataset/daveserver/usr/local/www/apache24/data/awesome"}
}
}
}

I already got my jail to work for my php file but when I tried to debug hello.php it didn't work at all.
 

Attachments

  • xdebug.jpg
    xdebug.jpg
    118.3 KB · Views: 425
  • xbugsublimetext3.jpg
    xbugsublimetext3.jpg
    118.8 KB · Views: 470
Status
Not open for further replies.
Top