WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


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.

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.