src/Leevel/Debug/Middleware/Debug.php
public function terminate(Closure $next, IRequest $request, IResponse $response): void
    {
        if (!$this->app->debug()) {
            $next($request, $response);

            return;
        }

        $this->debug->handle($request, $response);

        $next($request, $response);
    }
public function terminate(Closure $next, IRequest $request, IResponse $response): void
    {
        if (!$this->app->debug()) {
            $next($request, $response);

            return;
        }

        $this->debug->handle($request, $response);

        $next($request, $response);
    }
响应.

@param \Closure               $next
@param \Leevel\Http\IRequest  $request
@param \Leevel\Http\IResponse $response