Debugger true in dev and false in prod

I’m new to ColdBox, so there is probably a simple solution I’m not seeing. How can I turn debugger on in dev environment and off in prod?

1 Like

Howdy LJ!

Take a look at the ColdBox “Environments” docs:

Essentially, you configure a host name for your “development” environment and a hostname for your “production” environment. You can then alter settings in the dev functionand theprod` function as necessary:

Personally, I would adjust the modules.exclude setting for the production environment:

/**
 * All production-specific settings here
 */
function production() {
  // something like this:
  modules.exclude = [ "cbdebugger" ]
}

Feel free to read up on Module configuration as well:

1 Like