How to display $variables in drupal 6 preprocess function?
Install the Devel module.

Once installed use the function dpm() like this: dpm($variables);

This will give you a nice print out of your variables.