If you are using the vim debugger, there should be a list of commands in
the middle window on the right side. One of the commands allows you to
view variables. I don't have it in front of me right now but I believe
it starts with ','. Press that command and your cursor will be placed
in the top window on the right side. There you can type out the
variable and see its value, or give it any command such as var_dump and
have it go to stdout of the script you are debugging.
Trevan
From: xdebug-general-bounce[@]lists.xdebug.org
[mailto:xdebug-general-bounce[@]lists.xdebug.org] On Behalf Of Roland Dunn
Sent: Saturday, October 04, 2008 6:28 AM
To: xdebug-general[@]lists.xdebug.org
Cc: roland.uknetmktg[@]googlemail.com
Subject: [xdebug-general] Examining variables whilst debugging
Hi,
Wonder if anyone can help.
I've got xdebug configured on my Ubuntu box (8.04) and working nicely
with PHP5 and gvim (ver 7.1 I think), it's great to have access to a PHP
debugger. I've been able to break where I want using xdebug_break(); and
I can use var_dump(variable); to examine the contents of the variable,
but .....
... is it possible, from within xdebug (working in vim) when the code
has broken at an xdebug_break(); point to then choose to examine the
values of particular variables? e.g. so at that time decide I want to
see the value of three different variables - is this possible and if so
- how?
Many thanks for anyone's help,
Kind regards,
Roland
Received on Mon Oct 06 2008 - 20:27:15 BST
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST