Title: Debug This &gt; Current Theme &gt; Current Template Returns &#039;debug-template&#039;
Last modified: August 30, 2016

---

# Debug This > Current Theme > Current Template Returns 'debug-template'

 *  Resolved [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-this-current-theme-current-template-returns-debug-template/)
 * Debug This > Current Theme > Current Template Returns ‘debug-template’ rather
   than the template for the page I was looking at.
 * This can’t be correct, can it?
 * Thanks!
 * [https://wordpress.org/plugins/debug-this/](https://wordpress.org/plugins/debug-this/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  anonymized-13171256
 * (@anonymized-13171256)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/debug-this-current-theme-current-template-returns-debug-template/#post-6432475)
 * I don’t think that ever worked 🙂 In fact, [I asked about it](https://wordpress.org/support/topic/current-template-file?replies=1)
   up before coming aboard the project. I will try to fix it soon.
 *  Thread Starter [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/debug-this-current-theme-current-template-returns-debug-template/#post-6432477)
 * Cool. Have you seen [the Which Template plugin](https://wordpress.org/plugins/which-template/),
   it does this part and shows it in the admin bar when looking at a page.
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/debug-this-current-theme-current-template-returns-debug-template/#post-6432478)
 * Thanks, I will check that out.
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/debug-this-current-theme-current-template-returns-debug-template/#post-6432586)
 * This now works in version 0.4 though it only catches the current template without
   the extra info that plugins like Which Template and Show Current Template display.
   Debug This refreshes the page in order to display its results so the template
   trail of the previous page is lost.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Debug This > Current Theme > Current Template Returns 'debug-template'’
is closed to new replies.

 * ![](https://ps.w.org/debug-this/assets/icon-256x256.png?rev=3230726)
 * [Debug This](https://wordpress.org/plugins/debug-this/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/debug-this/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/debug-this/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-this/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-this/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-this/reviews/)

## Tags

 * [template](https://wordpress.org/support/topic-tag/template/)

 * 4 replies
 * 2 participants
 * Last reply from: anonymized-13171256
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/debug-this-current-theme-current-template-returns-debug-template/#post-6432586)
 * Status: resolved