As you may know, Magento provides template path hints function to help you debug your template. However, this function is only available in front-end. Sometimes, you need to debug the template in back-end. How should you do? I have a tip to enable template path hints for magento admin.
In the configuration file (config.xml) of an active module, you can insert the following code:
<config> ... <default> <dev> <debug> <template_hints>1</template_hints> <template_hints_blocks>1</template_hints_blocks> </debug> </dev> </default> </config>
This code will enable template path hints for all pages in your Magento sites (including admin and front-end). In case you want to enable it in admin only, you can use the code below:
<config> ... <websites> <admin> <dev> <debug> <template_hints>1</template_hints> <template_hints_blocks>1</template_hints_blocks> </debug> </dev> </admin> </websites> </config>
Hope this post help you to debug the code in magento admin!