Blazor with dotnet watch (hotreload) and debugging with breakpoints
Hi,
I try to use dotnet watch in combination with debugging with breakpoints in my Blazor application. But when dotnet watch (hotreload) is enabled, none of the breakpoints are getting hit.
Does anyone know the correct setup/launchprofile to do this?
Thanks!
Please sign in to leave a comment.
It's not fully supported in Rider to attach the debugger on
dotnet watch
started processes.You can attach the debugger after running your application with
dotnet watch run
in Run | Attach to process, and set up breakpoints in code. But it will fail afterdotnet watch
apply your code changes and reload the application.We have a corresponding feature request here, would appreciate it if you upvote the request to demonstrate additional interest for this feature:
RIDER-20509 Allow debugger to auto-attach if dotnet-watch reloads