How do I debug Blazor WASM apps running behind SWA CLI? #546
Unanswered
nguyenlamlll
asked this question in
Q&A
Replies: 1 comment
-
Hi, I had the exact same problem. Searching for an answer, I came across the following article which explains into great detail how to solve our problem 😀 Hope it helps.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Blazor WASM app (.NET 6). I use SWA CLI to emulate the Azure Static Web App env locally. I can debug Blazor WASM when I run it alone, but I need SWA CLI because there are auth features there. Is it possible to debug it?
I try to run something like
The swa website will be
localhost:4280
.I run my Azure Functions on the other process, and I start a debugging Visual Studio 2022 session. But breakpoints are not hit in Visual Studio when I go to
localhost:4280
.Another try:
This time I let SWA CLI run the Blazor app. Then I use "Attach to a process" feature of Visual Studio 2022. To no avail, too.
So... How do I debug a Blazor WASM app behind SWA CLI proxy? Many thanks.
By the way, I also opened a question on StackOverflow, but the tag [swa-cli] does not exist yet and I do not have enough reputation point there to create the tag.
Beta Was this translation helpful? Give feedback.
All reactions