Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Xdebug, view full variable content
Xdebug, view full variable content [message #80382] Tue, 16 September 2008 21:34 Go to next message
Hertzel Armengol is currently offline Hertzel ArmengolFriend
Messages: 19
Registered: July 2009
Junior Member
HI when running the debugger, all of the variable contents are truncated
how can I set this to no limit?, to actually see the whole thing?
Re: Xdebug, view full variable content [message #80399 is a reply to message #80382] Tue, 16 September 2008 21:40 Go to previous messageGo to next message
Shawn Clark is currently offline Shawn ClarkFriend
Messages: 70
Registered: July 2009
Member
hertzel wrote:
> HI when running the debugger, all of the variable contents are truncated
> how can I set this to no limit?, to actually see the whole thing?

There isn't an option to set "no limit" but you can increase the limit
within the XDebug config. Within Eclipse go to Window -> Preferences ->
PHP -> Debug -> Installed Debuggers. Highlight XDebug and click
"Configure". Within the window that pops up you can see the array depth
and the max children. Setting those values higher will give you more
data back about your variables.

If you are needing information on a specific element within a variable
array then it is sometimes better to watch that specific element without
trying to get the whole array. If you go to Window -> Show View ->
Expressions you can see your watched expressions. Then you can add an
expression there or within your code you can highlight the variable call
and right click -> watch to add it to your watched expressions.

--
Shawn Clark
Re: Xdebug, view full variable content [message #80413 is a reply to message #80382] Tue, 16 September 2008 21:56 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
You currently cannot control the max data of xdebug through PDT (1.0.3 or upcoming 2.0 version)
which is the maximum amount of information an individual element will receive from xdebug in general.

However you can retrieve the whole value of a string. Select the variable you want to look in the
variables view and being up the context menu for it . Select "Change Value". This will bring up a
dialog box that will show you the full contents of the string. Press Cancel to ensure you don't
change the contents.

Dave Kelsey

hertzel wrote:
> HI when running the debugger, all of the variable contents are truncated
> how can I set this to no limit?, to actually see the whole thing?
Re: Xdebug, view full variable content [message #80429 is a reply to message #80413] Tue, 16 September 2008 22:43 Go to previous messageGo to next message
Hertzel Armengol is currently offline Hertzel ArmengolFriend
Messages: 19
Registered: July 2009
Junior Member
I tried Change Content once, and it was truncated as well (Im trying to
retrieve a long xml document)

Dave Kelsey wrote:
> You currently cannot control the max data of xdebug through PDT (1.0.3
> or upcoming 2.0 version) which is the maximum amount of information an
> individual element will receive from xdebug in general.
>
> However you can retrieve the whole value of a string. Select the
> variable you want to look in the variables view and being up the context
> menu for it . Select "Change Value". This will bring up a dialog box
> that will show you the full contents of the string. Press Cancel to
> ensure you don't change the contents.
>
> Dave Kelsey
>
> hertzel wrote:
>> HI when running the debugger, all of the variable contents are
>> truncated how can I set this to no limit?, to actually see the whole
>> thing?
Re: Xdebug, view full variable content [message #80444 is a reply to message #80429] Wed, 17 September 2008 09:31 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
How big is the string ? It would be interesting to know where the limitation is, whether it is
xdebug, the PDT code or the eclipse dialog box used to display it.

It would also be good if you could try PDT 2.0. I changed the string implementation in PDT to
display the current length stored in PDT the actual length of the string and the ability to get a
byte view of the string.

Dave Kelsey

hertzel wrote:
> I tried Change Content once, and it was truncated as well (Im trying to
> retrieve a long xml document)
>
> Dave Kelsey wrote:
>> You currently cannot control the max data of xdebug through PDT (1.0.3
>> or upcoming 2.0 version) which is the maximum amount of information an
>> individual element will receive from xdebug in general.
>>
>> However you can retrieve the whole value of a string. Select the
>> variable you want to look in the variables view and being up the context
>> menu for it . Select "Change Value". This will bring up a dialog box
>> that will show you the full contents of the string. Press Cancel to
>> ensure you don't change the contents.
>>
>> Dave Kelsey
>>
>> hertzel wrote:
>>> HI when running the debugger, all of the variable contents are
>>> truncated how can I set this to no limit?, to actually see the whole
>>> thing?
>
Re: Xdebug, view full variable content [message #513997 is a reply to message #80444] Thu, 11 February 2010 23:56 Go to previous message
brian  is currently offline brian Friend
Messages: 1
Registered: February 2010
Junior Member
the "change value" works for me, thanks!

If this doesn't work for you, be sure you have xdebug setting xdebug.var_display_max_data set to an appropriate value, see http://xdebug.org/docs/all_settings
Previous Topic:Button Clicks Don't Work
Next Topic:Debugger redirections
Goto Forum:
  


Current Time: Tue Dec 03 18:09:41 GMT 2024

Powered by FUDForum. Page generated in 0.03828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top