Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug in Sublime Text 3: how to see the sub-array content in the Xdebug context

When I put a break point with Xdebug I can see the content of the current variables of the environment. Some of these variables are an array with another array inside. I don't know how to see the content of that sub-array:

Screenshot of the sub-array I can't see

Is it possible? How?

like image 375
chelder Avatar asked Dec 18 '14 21:12

chelder


People also ask

How do I use Xdebug in Sublime Text 3?

Installation of Sublime PluginStep 1 − Install package control palette installation with the shortcut of Ctrl+Shift+P or Cmd+shift+P. Step 2 − After the successful installation of Xdebug client, the configuration file will be kept in the Installed Packages folder.

How to add debugger to sublime?

In the menu, click on tools -> Xdebug and click on start debugging (launch browser). You will notice that your website is opened up and that ? XDEBUG_SESSION_START=sublime. xdebug is added to the end of the URL.


1 Answers

Add the following to the user configuration file of the Xdebug plugin (Preferences > Package Settings > Xdebug > Settings - User):

{
    "max_depth": 2
}

That's for one sub-array. If you want a sub-sub-array just type: "max_depth": 3...

like image 88
chelder Avatar answered Oct 21 '22 20:10

chelder