dotnetdev
dotnetdev
CC#
Created by dotnetdev on 2/15/2023 in #help
❔ Debugging asp.net core app from vscode
okay, no problem. I am outside office. I will prepare that and share it with you. You can check when you have time.
26 replies
CC#
Created by dotnetdev on 2/15/2023 in #help
❔ Debugging asp.net core app from vscode
okay, will reproduce that and share code with you.
26 replies
CC#
Created by dotnetdev on 2/15/2023 in #help
❔ Debugging asp.net core app from vscode
no no, what i mean is, I have set on MapGroup RequiredAuthorization, and to do so, then all endpoints belongs to that group should have [Authorize] or we should explicitly define allowanonymous, otherwise it will return 404, because endpoints thinks there is a route with authorization, but it is not there. if you want I can share a project with you, you can check.
26 replies
CC#
Created by dotnetdev on 2/15/2023 in #help
❔ Debugging asp.net core app from vscode
and this is not only about 404, I can't debug how asp handles JWT tokens. there are lots of other sutffs.
26 replies
CC#
Created by dotnetdev on 2/15/2023 in #help
❔ Debugging asp.net core app from vscode
yes, but my concern is not that I can't handle 404, what I mean is, where is the first place to put breakpoint. and there was a route but still returning 404 on minimal apis was, because I have set RequiredAuthorization but not set Authorize on endpoint. and I solved it. but that took too much time from me scrolling throw my code. so I thought if there was a place to debug then I would know it is because of Authorization.
26 replies
CC#
Created by dotnetdev on 2/15/2023 in #help
❔ Debugging asp.net core app from vscode
I know, but from which place that code is returning, there is a function right. why I can't put a breakpoint there.
26 replies