{"id":6113,"date":"2014-04-13T03:00:29","date_gmt":"2014-04-13T03:00:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/how-to-runtime-disable-xdebugs-var_dump-and-errors-prettify-collection-of-common-programming-errors-2\/"},"modified":"2014-04-13T03:00:29","modified_gmt":"2014-04-13T03:00:29","slug":"how-to-runtime-disable-xdebugs-var_dump-and-errors-prettify-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/how-to-runtime-disable-xdebugs-var_dump-and-errors-prettify-collection-of-common-programming-errors-2\/","title":{"rendered":"How to runtime disable xDebug&#39;s var_dump and errors prettify?-Collection of common programming errors"},"content":{"rendered":"<p>I sometimes prefer to use<\/p>\n<pre><code>header(\"Content-type: text\/plain\");\n<\/code><\/pre>\n<p>Do not mess around with HTML. However, whenever an error occurs, or when I use <code>var_dump()<\/code>, it would issue a large HTML block to prettify the output. While it&#8217;s great in HTML context, I would like to disable it when I work in text\/plain.<\/p>\n<p>Is it possible to do? Runtime disable of the prettify?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I sometimes prefer to use header(&#8220;Content-type: text\/plain&#8221;); Do not mess around with HTML. However, whenever an error occurs, or when I use var_dump(), it would issue a large HTML block to prettify the output. While it&#8217;s great in HTML context, I would like to disable it when I work in text\/plain. Is it possible to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6113"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6113\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}