While upgrading a CB application from 2.x to 5.0 - the following bit of code is throwing an error.
event.showdebugpanel( false );
is throwing an error
component [coldbox.system.web.context.RequestContext] has no function with name [showdebugpanel]
I’ve installed the coldbox debugger via commandbox
I would look into something like this:
getInstance( ‘debuggerService@cbdebugger’ ).setDebugMode( false );
Oh wait, I just noticed int he readme for cbdebugger right after I send this: these function are available in every handler, interceptor, layout, and view:
showDebugger()
hideDebugger()
Just call those.
https://github.com/coldbox-modules/cbox-debugger/blob/development/modules/cbdebugger/models/Mixins.cfm
Thanks. Both of those methods work.