How can I debug a Views 2 block argument set via "Provide default argument" and "PHP Code"? I am using Views 2.16 on Drupal 6. I have the Content Profile module loaded and the profile has a nodereference field to another content type called Project. I would like to show a list of Projects in a block on the side when viewing the user page. I need to provide a default argument to a view since it is a block.

So the urls look like /user/admin, /user/joe who are related to content profile nodes 1867 and 1952 etc. I have the view showing correctly if I feed it a node id for a user profile as a hard coded value. 

Now I want to do some stuff in the default argument code such as user_load(array('name' => arg(1)), content_profile_load($user->uid) and so on but it's not working. 

What I have tried:
print_r, var_export('abc', true), dpm($user), watchdog('php-test', 'a string'). 

None of these methods gave me any debug output. How can I debug the argument code?
After more testing it appears that the watchdog function does work for debugging the embedded PHP code in the Argument Validator and Argument Default Value. I believe my validation was too strict previously and was preventing any output. For example embedding the line below in the "PHP validate code: " area gives all the argument components.

watchdog('block-args-php', var_export(arg(), TRUE));