|
Re: Xdebug, view full variable content [message #80399 is a reply to message #80382] |
Tue, 16 September 2008 21:40   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05294 seconds