Replies: 1 comment 1 reply
-
As you've pointed out, the handler itself is not being called or you would have seen the break. Middleware errors would cause a panic under |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created a basic web app using actix-web, and also created a test for it following the official documentation. The app is working well, and so is the test. I can even step through the test function with a debugger.
However, to simulate the experience of having to unravel some error in my handler, I tried debugging INTO my handler function and I realized that my debugger would always step over the line
let resp = test::call_service(&app, req).await;
. Technically, it does step into something, but after a few hops it comes out again and never stops at the breakpoint I have set in the handler which I'm invoking.So I'd like to understand if this behavior is expected? Or would you expect that one would be able to debug into a handler function itself? If this is expected, is there some special configuration I can use to allow debugging in to the handler?
For the moment, I'm only looking to answer this question in the general sense, which is why I haven't shown any code yet (I can try to come up with some minimally-reproducing code later, if needed). But for now, maybe it's enough to know that I'm using VSCode with the CodeLLDB extension.
Beta Was this translation helpful? Give feedback.
All reactions