Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,075 of 9,075 pages
About the help in other languages
All help pages

Restrict debug output

Step by step - make sure Exponential's debug output is off in production, and when a live problem needs it, switch it on for your own address only, then remove it again and check that nothing is shown to visitors.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/tasks/compliance/restrict-debug-output.md

On this page

Restrict debug output

For administrators and developers. Debug output shows SQL, file paths and template names: never for visitors of a public site (Debug output in production).

Contents

  1. Check it is off
  2. Debug for your address only
  3. Remove it again
  4. Related pages

Check it is off

./console exp:ini get site.ini/DebugSettings/DebugOutput --allow-root-user        # disabled
./console exp:ini get site.ini/TemplateSettings/Debug --allow-root-user           # disabled
./console exp:ini where site.ini/DebugSettings/DebugOutput --allow-root-user      # which files set it

Also check PHP: display_errors=Off and expose_php=Off for PHP-FPM.

Debug for your address only

  1. In settings/override/site.ini.append.php:

    [DebugSettings]
    DebugOutput=enabled
    DebugByIP=enabled
    DebugIPList[]
    DebugIPList[]=203.0.113.10

    Behind a proxy, DebugByIP uses the visitor address only from trusted proxies; never list the proxy's own address.

  2. Clear the INI cache and reload PHP.

  3. Reproduce the problem; consider finding the error by its reference in the log viewer instead (Finding an error by its reference).

Remove it again

Set DebugOutput=disabled (or remove the lines), clear the INI cache, reload. Then from another network:

curl -s https://www.example.gov/ | grep -c -i 'debug'

The audit records each setting write; /audit/console/(name)/system.setting.write shows forgotten debug switches.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x