Debugmiddleware
DebugMiddleware decides whether debugging is active and initializes the DebugCollector accordingly.
Other middleware can consult its isEnabled() method to optionally log extra information. Use it at the start of the pipeline when developing.