Currently you can only specify the maximum number of requests for debugging logging, but the so far unaddressed issues with debugging in 5.3 (all scopes being saved in the debugging logs) means enabling debugging can quickly lead to Lucee running out of memory.
To avoid this, it would be sensible to be able to set a total memory limit for debugging requests, i.e. only allow up to 100mb to be used for logging debugging logs
sadly it is not that easy, you cannot messure the memory used by a variable, but we have to find a solution for this
we should may consider not to chache
to reduce the data cached or/and store it on the file system.
ah, so the BIF sizeOf() function really isn’t reliable? i know it’s marked as experimental
since the scope logging got backed out, I haven’t seen this being a problem, but I do like the idea of storing it on disk or as a blob in datasource instead of memory.
being able to set a threshold so that only slow requests get log out would be useful, esp in production, often the interesting (problematic) stuff gets purged from the debug cache due to boring little requests