{"id":8635,"date":"2014-11-11T15:32:31","date_gmt":"2014-11-11T15:32:31","guid":{"rendered":"https:\/\/wp.okra.host\/article\/displaying-errors-on-screen-for-debugging\/"},"modified":"2021-03-07T14:37:53","modified_gmt":"2021-03-07T13:37:53","slug":"displaying-errors-on-screen-for-debugging","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/displaying-errors-on-screen-for-debugging\/","title":{"rendered":"Displaying errors on-screen for debugging"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>During early development of a PHP application or to debug a problem, errors should be displayed in-browser to help\u00a0spot typos, undefined\u00a0variables, misconfiguration, and other logic flaws.<\/p>\n<h2 id=\"solution\" >L\u00f6sung<\/h2>\n<p>Enable\u00a0<code>display_errors<\/code> and increase verbosity in\u00a0<code>error_reporting<\/code>\u00a0<a title=\"\u00c4ndern der PHP-Einstellungen\" href=\"https:\/\/kb.okra.host\/de\/php\/changing-php-settings\/\">within PHP<\/a>. As an example, configuration within a <a title=\".htaccess-Leitfaden\" href=\"https:\/\/kb.okra.host\/de\/guides\/htaccess-guide\/\">.htaccess<\/a>\u00a0\u00a0would be:<\/p>\n<pre><span style=\"font-family: monospace\">php_flag display_errors On\r\nphp_value error_reporting 9999999<\/span><\/pre>\n<h2 id=\"caveats\" >Caveats<\/h2>\n<p>Some applications may use a separate configuration value to enable\/disable debugging. This in turn will toggle the above settings on or off within the application\u00a0through <a href=\"http:\/\/php.net\/ini_set\">ini_set<\/a>. Refer to your application&#8217;s manual for specific instructions.<\/p>\n<h3 id=\"common-applications\" >Common\u00a0Applications<\/h3>\n<ul>\n<li>WordPress: <a href=\"http:\/\/codex.wordpress.org\/Debugging_in_WordPress\">Debugging in WordPress<\/a><\/li>\n<li>Drupal: <a href=\"http:\/\/ratatosk.net\/drupal\/tutorials\/debugging-drupal.html\">Debugging Drupal<\/a><\/li>\n<li>Symfony: <a href=\"http:\/\/symfony.com\/doc\/current\/components\/debug\/introduction.html\">The Debug Component<\/a><\/li>\n<li>Zend Framework: <a href=\"http:\/\/devzone.zend.com\/1735\/zend-framework-tutorial-series-part-2_debugging-your-application\/\">Part 2 &#8211; Debugging Your Application<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Overview During early development of a PHP application or to debug a problem, errors should be displayed in-browser to help\u00a0spot typos, undefined\u00a0variables, misconfiguration, and other logic flaws. Solution Enable\u00a0display_errors and increase verbosity in\u00a0error_reporting\u00a0within PHP. As an example, configuration within a .htaccess\u00a0\u00a0would be: php_flag display_errors On php_value error_reporting 9999999 Caveats Some&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[63],"ht-kb-tag":[],"class_list":["post-8635","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-php"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8635"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8635\/revisions"}],"predecessor-version":[{"id":8636,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8635\/revisions\/8636"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8635"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8635"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}