Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
How do you debug plugins?

I have an issue that the posts table shows "no posts found" right after the installation although I can see "All (1) | Published (1)" right above it.

Now I'm not asking how to fix this very issue, I'd rather learn how to troubleshoot such issues in general. Is there a log file? (Haven't found one.) Is there some plugin that would help with seeing which SQL commands are executed and what data is returned? Something to display PHP warnings?

Thanks.

share|improve this question

marked as duplicate by toscho, Wyck, Brian Fegter, kaiser, Chris_O Sep 10 '12 at 1:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 2 down vote accepted

There are a few things you can do:

  1. Use the Debug Bar plugin http://wordpress.org/extend/plugins/debug-bar/
  2. Set WP_DEBUG to true in your wp-config.php file if you are looking for problems in a theme or plugin
  3. I created a plugin that allows you to dump any variable into the Debug Bar plugin: http://wordpress.org/extend/plugins/kint-debugger/ You should look at the global $wp_query var to see the query that is being executed.

Beyond that, there are dozens of debug plugins on the plugin repo.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.