-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Breakpoints do not work when debugging configuration other than Debug #20132
Comments
There appears to be a workaround to this issue. The workaround is to add a specific property to the configuration in a property group. Referencing this link for the workaround: This is however, just a workaround, and should ultimately be fixed in either MAUI or .NET |
I am now getting similar behavior on that sample app if I try Android (I just changed the .csproj to have In
|
Thanks for the issue report @jump32! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS. If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
|
Although I accept this may not be the correct repo to find a fix, I don't think it is a problem with Visual Studio. Neither Visual Studio nor Visual Studio for Mac were used, just VS Code and Rider. After searching for |
Just join the dots for related issues: Very similar sounding issue, but also including a crash: Open issue in dotnet runtime outlining how mobile apps more routinely need more configurations: |
This issue is being looked at in the .NET MAUI Extension for VS Code where we expect that a fix will be made. If we find that the issue is deeper in the SDK, then we'll work with the MAUI SDK team to devise a fix. I expect a fix for .NET MAUI Extension for VS Code before GA is declared and likely within a month from now. |
@AllenD-MSFT Thank you for the update. As a reminder we are also seeing the issue with Rider. Suggesting that the issue is probably deeper than just the VS Code extension. But thank you for the update all the same. |
We've looked into the code in our MAUI DevKit extension and found the root cause there. I suspect that other tools may also have similar issues with configuration handling. Likely Rider has a similar bug that MAUI DevKit has. |
FYI: This issue has been fixed in MAUI DevKit (.NET MAUI Extension for VS Code). I'm leaving the issue open since there are indications that this problem is also occurring with other tools which may be indicative of a problem deeper in the tech stack, but may also simply be duplicate bugs in other tools. |
I'm going to go ahead and close this one, since there's no action for the MAUI team to take here. Thanks! |
Description
When building a configuration named other than 'Debug' breakpoints no longer appear to work. This is despite the fact that the configuration should be a debug configuration.
Additional notes:
Despite the use of VS Code in the repo steps below, we see similar behaviour in Rider. Suggesting that the IDE is not the source of the issue.
Steps to Reproduce
Then:
Link to public reproduction project repository
https://github.com/jump32/maui-app-debug-issue/tree/main
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
VS Code with latest Dev Kit extensions. Xcode 15.1.0, iOS 17.2 on iPhone simulator
Did you find any workaround?
None found so far.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: