Skip to content

Instantly share code, notes, and snippets.

@kellenmace
Created January 12, 2021 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellenmace/73c6fb405c5462fe981eb09bf632c91f to your computer and use it in GitHub Desktop.
Save kellenmace/73c6fb405c5462fe981eb09bf632c91f to your computer and use it in GitHub Desktop.
Traditional vs. Headless WordPress Debugging Methods
TRADITIONAL HEADLESS
WP_DEBUG_DISPLAY πŸ‘‰ Enable WPGraphQL Debug Mode & inspect response errors
die() / wp_die() / var_dump() πŸ‘‰ wp_send_json() or Enable GraphQL Debug Mode and use graphql_debug()
Postman/REST client πŸ‘‰ Enable GraphiQL IDE
WP_DEBUG_LOG πŸ‘‰ Still works!
Xdebug on page load πŸ‘‰ Xdebug triggered by GraphiQL request in the wp-admin
Query Monitor πŸ‘‰ Enable GraphQL Query Logs
NewRelic/Profiling tools πŸ‘‰ Enable GraphQL Tracing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment