{"id":6751065,"date":"2015-11-15T16:58:28","date_gmt":"2015-11-15T16:58:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/idea-enable-wp_debug-from-dashboard\/"},"modified":"2016-08-30T20:17:25","modified_gmt":"2016-08-30T20:17:25","slug":"idea-enable-wp_debug-from-dashboard","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/idea-enable-wp_debug-from-dashboard\/","title":{"rendered":"enable WP_DEBUG with a url"},"content":{"rendered":"<p>Many developers need to enable WP_DEBUG constant, but modyfing wp-config.php is ver inconvenient.. so, i have an idea&#8230;<\/p>\n<p>in wp-config.php (or somewhere you know better) there should be a functionality,to do the following:<\/p>\n<p>Let&#8217;s say, when I access site with parameter:<br \/>\n<strong>mysite.com\/?debug=on<\/strong><br \/>\nthen :<br \/>\n1) check if i am admin ( or paragraph doesnt matter )<br \/>\n2) ask me confirmation message: Warning? Are you sure you really want to enable debug?<\/p>\n<p>if yes, then set special cookie for me &#8230; and re-direct to the homepage..<br \/>\nAfter that, whenever WP sees that i have that cookie, then  enable <strong>WP_DEBUG + WP_DEBUG_DISPLAY<\/strong>  for me   ( BUT that should be enabled ONLY when the front-end is accessed&#8230; for \/wp-admin\/, dont enable them..)<\/p>\n<p>I should be able DISABLE that using:<br \/>\n<strong>mysite.com\/?debug=off<\/strong><\/p>\n","protected":false},"template":"","class_list":["post-6751065","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6751065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6751065\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6751065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}