I have 9.8.2 with a few modifications deployed. I've gotten pretty comfortable with the data structures but still struggle to debug any code. I have tried with no luck to get var_dump to output to any pages/functions I'm working on.

Is there a simplier way than creating a bunch of smarty variables? If creating and adding variables to smarty is the only way, can someone provide an example of how I might be able to echo the $_GLOBALS to the various stages of registration (register.php, register_step_1.tpl, etc.)?

I am unable to find an example to follow in the forums. Thank you.