how to display Variables in User account page In the node template, I used to put the following code to find the variables:

&lt;?php print_r($node) ;?&gt;


What if this is a user account page (e.g. /user/1), what "$object" should I print to see the variables. I need to pre-fill the webform's fields with the profiler2's fields.
Try get_defined_vars

If you install the Devel Module there is a page for viewing and editing variables.

Also you can try 

&lt;?php
 dsm (array_keys(get_defined_vars())); 
?&gt;


See also:

get_defined_vars()

get_defined_constants()

get_defined_functions()