How to see the request evolution during a middleware chain

I wanted to know if there is a way to debug the middleware ? by example to see the evoltion of a request between middleware in case of use of chain of middleware