-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlazorWorker breaking the debugger #116
Comments
Hello, The debugging experience has always been very limited. It's possible that creating a new process while attached somehow breaks the debugger connection, like a conflict or something. I don't have any quick fix for this problem unfortunately. I know there is a debugger flag for the the new dotnet process in there somewhere, it may have some impact and indeed there may be differences between runtime behavior for this kind of stuff. So this worked for you in .net 5? Could be an interesting starting point. However the init code is wildly different starting .net 7 |
This project it was pretty lost in space, I didn't used with .NET 5 for a long time, but I belive it worked before the debugger in the main process at least (nothing in worker process) |
I haven't found any workaround. However I have found this issue which is surely related: |
Yeah, pretty likely to be the same problem, thank you, I will keep an eye in that issue. |
I spent a time trying to solve a problem where the debugger just ignore all breakpoints after my app initializes,
but after step the whole initialization, I've found that the debugger does not break (or step) after this line:
The debugger output print this as well:
I was doing a upgrade from the .NET 5 to .NET 8 this may be a problem that happened due the upgrade,
but I would appreciate if you know if there are something that can be done to solve this issue.
Currently I can debug my app by just including
#if !DEBUG
in worker related features.The text was updated successfully, but these errors were encountered: