This is great for troubleshooting. If you need to see the main variables WP is loading, try sticking this in your template and refreshing. For more info, try this without the ->query_vars at the end.
<pre><?php print_r($wp_query->query_vars); ?></pre>