10000 [BUG] Breakpoints section has "All Exceptions" breakpoint missing and there's no way to add it manually · Issue #1715 · microsoft/vscode-dotnettools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUG] Breakpoints section has "All Exceptions" breakpoint missing and there's no way to add it manually #1715

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

Closed
Saratsin opened this issue Jan 9, 2025 · 6 comments
Assignees
Labels
area-maui bug Something isn't working fixed needs-more-info Needing more information, waiting on OP triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO

Comments

@Saratsin
Copy link
Saratsin commented Jan 9, 2025

Describe the Issue

I've struggled with the problem that "All Exceptions" breakpoint have just disappeared from my breakpoints section in Run and Debug tab.
I am using VS Code with C# dev kit and MAUI extensions in order to build and debug iOS and Android apps. "All Exceptions" breakpoint is crucial for development, actually it would be great to manually add exception breakpoints with some conditions and specific exception types, as we can in Visual Studio for Mac which is unforgivably abandoned by Microsoft.

Previously at least there were default "All Exceptions" and "Unhandled by user exceptions" breakpoints. But now, due to some unknown reason, these are gone. And now I can only manually add breakpoints, but there's no option for creating an Exception breakpoint. I've searched through the web and issues here for some possible solution, but unfortunately didn't find anything suitable, thus, please, help with finding at least some workaround or, maybe, possible solution.

P.S. Also, in the latest MAUI extensions preview you have removed the ability to disable the new debugger for .NET8+, which is very bad, since the new debugger doesn't work properly with iOS projects, at all.

Steps To Reproduce

  1. Run any .NET8.0 Android or iOS project
  2. Go to breakpoints section in run and debug

Expected Behavior

There's an ability to turn on All Exceptions breakpoint (or even create some custom exception breakpoint).

Environment Information

macOS Sonoma
| VS Bug 2381924

@Saratsin Saratsin added the bug Something isn't working label Jan 9, 2025
@Saratsin
Copy link
Author
Saratsin commented Jan 9, 2025

Strangely enough, it is not the case for all of the projects. Some have "All Exceptions" and "User-Unhandled Excpeions" option, and some doesn't. Maybe someone could point out what can be the reason that it works that way

@AbhitejJohn AbhitejJohn added the area-dotnet-debugging Issues around .NET Debugging with console, ASP.NET, or Aspire label Jan 9, 2025
@AbhitejJohn
Copy link

@WardenGnaw : Would you have any thoughts here?

@WardenGnaw
Copy link
Member

I see the option for Console, WebApps and Aspire projects.

This may be an issue on a MAUI project type.

@Pnlvfx
Copy link
Pnlvfx commented Jan 29, 2025

same

@mauroa mauroa added vs-sync Add this label to synchronize the issue to AzDo triaged The issue has been triaged labels Feb 6, 2025
@AllenD-MSFT AllenD-MSFT added the vs-syncd Linked to AzDO label Feb 12, 2025
@WardenGnaw WardenGnaw removed the area-dotnet-debugging Issues around .NET Debugging with console, ASP.NET, or Aspire label Mar 28, 2025
@mauroa
Copy link
Member
mauroa commented Apr 16, 2025

Hi @Saratsin.
The breakpoints panel shows after you debug the project once. You can verify the same behavior with a new .NET console app.
Since we migrated to use the new debugger by default (if you have at least dotnet 8.0.101), you should see this panel for MAUI and iOS/Android .NET apps.
Can you confirm if you see this with latest C#, C# DevKit and .NET MAUI versions? You should be able to see the panel and the "All Exceptions" and "User-Unhandled Exceptions" options normally once you enter in a debug session the first time.
We've tried several times in different environments and it always worked.
Thanks

@mauroa mauroa added the needs-more-info Needing more information, waiting on OP label Apr 16, 2025
@mauroa
Copy link
Member
mauroa commented May 6, 2025

Closing this issue since we explained the user case to the user and we didn't receive any response. Thanks for your help and feedback

@mauroa mauroa closed this as completed May 6, 2025
@mauroa mauroa added the fixed label May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui bug Something isn't working fixed needs-more-info Needing more information, waiting on OP triaged The issue has been triaged vs-sync Add this label to synchronize the issue to AzDo vs-syncd Linked to AzDO
Projects
None yet
Development

No branches or pull requests

6 participants
0