martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

Is there a setting allow more information on variables (e.g. array) #111

Closed martynbiz closed 6 years ago

martynbiz commented 10 years ago

I 've just started using xdebug with Sublime Text 2. Great tool. However, one thing that I'm unable to do which means I'll still have to rely upon var_dump etc is view all elements of items like arrays, objects etc. At the moment, in the xdebug context window, if there is an array with something like 50 elements - it will say how many elements it has. If I click on that variable another window appears showing me the contents of that variable (each element). This is a great feature but the information shown is truncated to something like 5 lines proceeded by "...". Is it possible to display the full contents of any variable. I looked in settings but didn't notice anything to do this (or I've missed it). If it doesn't exist, I think it would be a valuable option to have. Martyn

cbrunnkvist commented 9 years ago

There is a setting! Look in "Tools > Xdebug > Settings - Default" and copy the keys you want to change into your - User config.

As an example, the values I currently use:

    "max_children": 128,
    "max_data": 2048,
    "max_depth": 4,