{"id":5283,"date":"2025-12-23T10:53:32","date_gmt":"2025-12-23T09:53:32","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/advanced-debug-mode\/"},"modified":"2026-01-01T15:10:29","modified_gmt":"2026-01-01T14:10:29","slug":"advanced-debug-mode","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/advanced-debug-mode\/","title":{"rendered":"Advanced Debug Mode"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Advanced Debug Mode: enable and control WordPress debugging in total security<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>When developing or maintaining a WordPress site, the <strong>debug<\/strong> is indispensable for quickly identifying PHP errors, notices or warnings. However, correctly activating the debug mode is often a hassle: you have to modify the <code data-no-auto-translation=\"\">wp-config.php<\/code>manage error display, secure the file <code data-no-auto-translation=\"\">debug.log<\/code>and sometimes juggle several environments (local, staging, production).<\/p>\n\n\n\n<p>It's exactly to simplify all this that we've developed the <strong>Advanced Debug Mode<\/strong> from <strong>WPMasterToolKit<\/strong> centralized, secure and advanced WordPress debug management, directly from the administration interface.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"The best WordPress debug mode? Advanced Debug Mode (WPMasterToolKit)\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/NARBCBdfkwU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Which plug-ins can Advanced Debug Mode replace?<\/h2>\n\n\n\n<p>The module <strong>Advanced Debug Mode<\/strong> can replace several types of plugins or snippets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plugins dedicated solely to the activation of <code data-no-auto-translation=\"\">WP_DEBUG<\/code><\/li>\n\n\n\n<li>Extensions that move or secure the file <code data-no-auto-translation=\"\">debug.log<\/code><\/li>\n\n\n\n<li>Back-office log visualization solutions<\/li>\n\n\n\n<li>Manual snippets to protect <code data-no-auto-translation=\"\">debug.log<\/code> via <code data-no-auto-translation=\"\">.htaccess<\/code> or <code data-no-auto-translation=\"\">nginx.conf<\/code><\/li>\n<\/ul>\n\n\n\n<p>With WPMasterToolKit, everything is grouped together in a single module, loaded only when activated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enabling and managing advanced WordPress debug mode<\/h2>\n\n\n\n<p>Once the module has been activated, <strong>Advanced Debug Mode<\/strong> automatically takes control of essential WordPress constants:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code data-no-auto-translation=\"\">WP_DEBUG<\/code><\/li>\n\n\n\n<li><code data-no-auto-translation=\"\">WP_DEBUG_LOG<\/code><\/li>\n\n\n\n<li><code data-no-auto-translation=\"\">WP_DEBUG_DISPLAY<\/code><\/li>\n<\/ul>\n\n\n\n<p>You no longer need to manually modify your <code data-no-auto-translation=\"\">wp-config.php<\/code>. The module takes care of adding or replacing constants reliably and securely.<\/p>\n\n\n\n<p>From the interface, you can immediately view :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The current state of each constant<\/li>\n\n\n\n<li>The exact path of the log file used<\/li>\n\n\n\n<li>Changes to be applied during backup<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"966\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-9-1024x966.png\" class=\"wp-image-5318\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-9-1024x966.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-9-300x283.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-9-768x725.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-9-13x12.png 13w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-9.png 1432w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Whether or not to display errors on screen<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" decoding=\"async\" width=\"667\" height=\"77\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-10.png\" class=\"wp-image-5320\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-10.png 667w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-10-300x35.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-10-18x2.png 18w\" sizes=\"(max-width: 667px) 100vw, 667px\" \/><\/figure>\n\n\n\n<p>The module lets you easily activate or deactivate the <strong>Display Errors<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Activation: PHP errors are displayed on screen (<code data-no-auto-translation=\"\">WP_DEBUG_DISPLAY = true<\/code>)<\/li>\n\n\n\n<li>Deactivation: errors are only recorded in logs<\/li>\n<\/ul>\n\n\n\n<p>This option is particularly useful for development environments, but is not recommended for production sites.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Securing log files (PRO)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" decoding=\"async\" width=\"860\" height=\"77\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-11.png\" class=\"wp-image-5321\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-11.png 860w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-11-300x27.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-11-768x69.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-11-18x2.png 18w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<p>One of the major problems with WordPress debugging is public access to the <code data-no-auto-translation=\"\">debug.log<\/code>.<br>The module <strong>Advanced Debug Mode<\/strong> offers a robust solution (PRO version):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On <strong>Apache<\/strong> automatic addition of rules to the file <code data-no-auto-translation=\"\">.htaccess<\/code><\/li>\n\n\n\n<li>On <strong>Nginx<\/strong> generation of a snippet ready to be integrated into the server configuration<\/li>\n<\/ul>\n\n\n\n<p>Direct HTTP access to the log file is thus completely blocked, reinforcing your site's security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Personalized log file (PRO)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"86\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-12.png\" class=\"wp-image-5323\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-12.png 641w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-12-300x40.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-12-18x2.png 18w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<p>By default, WordPress stores the <code data-no-auto-translation=\"\">debug.log<\/code> in the <code data-no-auto-translation=\"\">wp-content<\/code>.<br>With <strong>Advanced Debug Mode<\/strong>you can activate a <strong>personalized log file<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Files are moved to a folder dedicated to WPMasterToolKit<\/li>\n\n\n\n<li>The path is clearly displayed in the interface<\/li>\n\n\n\n<li>This approach makes it easier to protect and organize logs<\/li>\n<\/ul>\n\n\n\n<p>This is ideal for professional sites and environments with a high volume of errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Daily log files (PRO)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"72\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-13.png\" class=\"wp-image-5324\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-13.png 704w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-13-300x31.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-13-18x2.png 18w\" sizes=\"(max-width: 704px) 100vw, 704px\" \/><\/figure>\n\n\n\n<p>To go even further, the module can generate <strong>daily logs<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>One file per day (<code data-no-auto-translation=\"\">debug-YYYY-MM-DD.log<\/code>)<\/li>\n\n\n\n<li>Fewer large files<\/li>\n\n\n\n<li>Easy analysis by date<\/li>\n<\/ul>\n\n\n\n<p>This option only works when the custom log folder is enabled.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-time log viewing (PRO)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"412\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-14-1024x412.png\" class=\"wp-image-5326\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-14-1024x412.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-14-300x121.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-14-768x309.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-14-18x7.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-14.png 1429w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The module <strong>Advanced Debug Mode<\/strong> integrates a <strong>Live Log Viewer<\/strong> directly in WordPress administration:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Real-time log reading<\/li>\n\n\n\n<li>Starting and stopping streaming<\/li>\n\n\n\n<li>Clear display<\/li>\n\n\n\n<li>Download log file<\/li>\n\n\n\n<li>Complete file deletion <code data-no-auto-translation=\"\">debug.log<\/code><\/li>\n\n\n\n<li>Display option with line break<\/li>\n<\/ul>\n\n\n\n<p>All actions are secured via AJAX, with verification of rights and WordPress nonces.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use Advanced Debug Mode<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Activate the <strong>Advanced Debug Mode<\/strong> in WPMasterToolKit<\/li>\n\n\n\n<li>Access its settings from the administration menu<\/li>\n\n\n\n<li>Configure error display to suit your environment<\/li>\n\n\n\n<li>(PRO) Activate log protection and custom folder<\/li>\n\n\n\n<li>(PRO) Use the log viewer to analyze errors live<\/li>\n<\/ol>\n\n\n\n<p>No manual file modification is required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Our technical choices<\/h2>\n\n\n\n<p>We have chosen :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clean handling of WordPress constants via a dedicated class<\/li>\n\n\n\n<li>Charge module only when activated<\/li>\n\n\n\n<li>Secure all AJAX actions (nonce + permissions)<\/li>\n\n\n\n<li>Offer Apache and Nginx compatibility<\/li>\n\n\n\n<li>Offer advanced functionality without compromising front-end performance<\/li>\n<\/ul>\n\n\n\n<p>Every feature is designed to remain <strong>optional<\/strong>, <strong>claire<\/strong> and <strong>controlled<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Advanced Debug Mode<\/strong> transforms WordPress debugging into a simple, secure and professional experience. Whether you're a developer, integrator or site administrator, you finally have a centralized tool for analyzing and resolving problems quickly.<\/p>\n\n\n\n<p>With WPMasterToolKit, one activated module = one loaded feature.<br>Without unnecessary overload, without multiple dependencies, and always with a performance and security-oriented approach.<\/p>","protected":false},"excerpt":{"rendered":"<p>The article introduces WPMasterToolKit's Advanced Debug Mode module, designed to simplify and automate the debugging process in WordPress development. This module makes it easy to manage debugging options, replacing several plugins and manual configurations, while guaranteeing flexibility and security. Thanks to the integration of custom filters and actions, it ensures efficient management in multi-server environments. In short, Advanced Debug Mode aims to improve efficiency and rapid problem resolution, enabling developers to concentrate on the creative aspects of their WordPress projects.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-5283","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/5283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=5283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}