App Termination while paused for debugging in Visual Studio MAUI


I have a C# MAUI App.
The App partial class is trivial

public partial class App : Application {public App() {AppData.Init();}}

I need to debug the Init() function, deployed to a local iPhone.

However, when I hit a debug breakpoint in Init(), after ~10 seconds something happens and the App is immediately terminated, even though it is ostensibly paused for debugging. Which makes debugging challenging.

The issue seems to be maybe related to HotReload, but I have disabled HotReload under VS.Tools.Options.Debugging.XAMLHotReload and under VS.Tools.Options.Debugging..NET/C++HotReload.

This is Windows VS 17.7.0 Preview 4.0. Same behavior on VS Stable.
Not sure what to try next

Leave a Reply

Your email address will not be published. Required fields are marked *