Add the ability to add debugger templates to Lucee

Description

Ticket has been migrated from https://github.com/Ortus-Solutions/commandbox-cfconfig/issues/7

By:
And maybe more of the settings for Lucee (set template, set SQL logging etc etc)

If you could point the way I might be able to implement it.

By:

I just recently added most all the debugging setting I could find for Adobe (paid work for a client). There's a bunch of commented out lines in this file that are some Lucee debugging settings I made note of early on but hadn't implemented:

https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseConfig.cfc#L384-L391

Here's most of the debugging settings that are already implemented (most are Adobe-centric)

https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseConfig.cfc#L296-L353

Basically, each missing Lucee debugging setting needs to be checked against that list to see if there is a suitable setting name we can re-use. For any debugging settings that are unique to Lucee, we need to add additional properties into the BaseConfig.cfc for each of them with the proper type and comment that clarifies what they are.

As far as adding a new setting in, there are three places the code needs touched for every setting:

Added as a property to BaseConfig.cfc (linked to above)
Add logic to "read" the setting in the BaseLucee.cfc file
Add logic to "write" the setting in theBaseLucee.cfc file
As an example, here are the 3 bits of code for a random setting:

Global definition of the setting:
https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseConfig.cfc#L108

Logic for Lucee to read the setting:
https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseLucee.cfc#L187

Logic for Lucee to write the setting:
https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseLucee.cfc#L562

Logic for Adobe to read the setting:
https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseAdobe.cfc#L133

Logic for Adobe to write the setting:
https://github.com/Ortus-Solutions/cfconfig/blob/master/models/BaseAdobe.cfc#L611

It's also worth noting, this all happens in the main cfconfig repo. This repo is only for the CommandBox CLI portion of CFConfig which only includes the code for the commands and CommandBox module but not the core services which are standalone.

Activity

Show:
Brad Wood
January 28, 2019, 9:58 PM

Note, the debugging templates still need to be supported for Lucee, but today I have added all of the "simple" boolean flags for turning debugging on/off, etc. Since you can have more than one debugging template, it will need to be an array of structs so it's a little more complicated.

Assignee

Mark Drew

Reporter

Mark Drew

Labels

None

Priority

Major