def __call__(self, context, app):
		"""Executed to wrap the application in middleware.
		
		The first argument is the application context, not request context.
		
		Accepts a WSGI application as the second argument and must likewise return a WSGI app.
		"""
		
		if __debug__:
			log.debug("Wrapping application in debugger middleware.")
		
		app = DebuggedApplication(
				app,
				evalex = __debug__,  # In production mode, this is a security no-no.
				show_hidden_frames = self.verbose,
				console_init_func = self.init_console,
				context_injectors = [self.init_debugger],
			)
		
		context.debugger = app
		
		return app
def __call__ ( self , context , app ) : if __debug__ : log . debug ( "Wrapping application in debugger middleware." ) app = DebuggedApplication ( app , evalex = __debug__ , show_hidden_frames = self . verbose , console_init_func = self . init_console , context_injectors = [ self . init_debugger ] , ) context . debugger = app return app
Executed to wrap the application in middleware.
		
		The first argument is the application context, not request context.
		
		Accepts a WSGI application as the second argument and must likewise return a WSGI app.