-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS] Custom Debug Configuration Issue & Crash #20211
Comments
Can you try this with a net8.0-ios app ( |
Hi @RobFrancisAu. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@drasticactions, this works CustomConfigurationIos.zip.
|
@rolfbjarne Do you need to set that value yourself in newer dotnet projects? I'm looking at the props files and from memory those values were set in Framework project files but that's not the case now. FWIW I did get a crash too, but that could be due to changing settings that are already handled by the SDK tooling (Or maybe there's a conflict between settings changed by MAUI props vs. SDK ones?). If I remove that setting and attach the debugger, it's fine. |
We set Setting |
Here is a crash report. |
Does it help if you clean the project first? |
Nope, tried all of that.
Is this not reproducible at your end then with the project I provided? I created the sample app (attached in the first post) to ensure I could reproduce it. The problem actually became apparent in a different project I was working on. |
@RobFrancisAu which IDE and OS are you using? |
JetBrains Rider : 2023.3.3 |
@drasticactions you said you could reproduce a crash; which IDE and OS was that with? Do you have a stack trace / crash report? |
Verified this issue with Visual Studio for mac 17.6.10(build428). Can not repro this issue with Android/iOS platforms.(Maui Version:8.0.14/8.0.3/8.0.0-rc.2.9530) |
Hi @RobFrancisAu. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I am seeing the same behavior on the latest version of Visual Studio for Mac VS for Mac version 17.6.10 (build 428).
It seems to be some problem related to Hot Reload. If I turn Hot Reload for MAUI off Visual Studio > Preferences... > Other > XAML Hot Reload > .NET MAUI Then the crash does not occur anymore, and I am able to debug, hit breakpoints, etc. |
Hi @RobFrancisAu. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been verified using Visual Studio 17.6.14(build413)(8.0.82 & 8.0.72 & 8.0.7 & 8.0.3). Not repro on 8.0.82 and 8.0.72 version. 8.0.3 and 8.0.7 do have this issue. |
Description
Hi All,
I am trying to create a custom debug configuration called
DemoDebug
in a Maui project.When trying to run the project on an iOS simulator (I have not tried other platforms), I have the two following issues;
The property group I am using in my
.csproj
looks like thisMtouchDebug
, the debugger is never attached and therefore no breakpoints are hit.<MtouchDebug>true</MtouchDebug>
crashes the app at startup.I have attached a sample project. here CustomDebugConfiguration.zip
Thanks in advance.
Steps to Reproduce
Link to public reproduction project repository
No response
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
No response
Did you find any workaround?
Currently unable to find a workaround.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: