r/Blazor • • Oct 10 '20

Debugging a Blazor application

Why is Blazor so fragile and near impossible to debug?
I'm creating an application, but any minor change causes the Client-side to fail and no longer load, and becomes impossible to debug.
It turns a 1 hour development effort into a week-long affair.
About ready to kick this BS project to the curb and work in React.

0 Upvotes

14 comments sorted by

View all comments

9

u/affenkonig11b Oct 10 '20

My experience is the exact opposite. You can set proper break points, inspect objects, step into/over/through and generally do everything else you can in a fully fledged IDE with any other c# project. Perhaps if you elaborate on your issue, someone could provide useful input.

4

u/Theotherbutter Oct 10 '20

I agree, I've had a breeze debugging. You're going to have the usual mess when debugging some asynchronous code but that's not specific to Blazor.

1

u/RirinDesuyo Oct 11 '20

And even then it isn't as bad as transpiled async code in JS where breakpoints almost never work properly and if it does it jumps all over the place or steps into the generator code itself.