Today we discuss how in Magento 2 enable template path hints. This topic will cover how to enable template path hints on frontend and also backend too. There are two ways to enable the template path hints. One way is to enable hints from admin configurations and the other way is by using MySql query.
Using Admin Panel
Login to admin panel.
Template Path Hints for Storefront > Yes
Template Path Hints for Admin > Yes
Using Mysql Query
Enable Temaote Path Hints
Disable Temaote Path Hints
Note: this command only work if it have already entry in core_config_data table.