Debug is not working [global::System.Diagnostics.Debugger.Break();] [Windows Machine]
itschnie opened this issue · 4 comments
Describe the bug
It happens quite often that I am not shown the exact errors, but only that there was a stop. This opens the file: "App.g.i.cs" and jumps to line 74 "global::System.Diagnostics.Debugger.Break();"
This makes debugging the error very difficult, as I cannot understand why the error occurs
The Visual Studio IDE itself does not show any errors "No Problems found".
To Reproduce
Steps to reproduce the behavior:
- Open Visual Studio 2022
- Trying to Open an App in Debug-Mode
- It breaks at some point, don't know, why.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
I think the problem is not related to MauiReactor but to WinUI.
Does it happen with a normal XAML-based MAUI app? Would you happen to have a small repro solution that I can run?
I think the problem is not related to MauiReactor but to WinUI. Does it happen with a normal XAML-based MAUI app? Would you happen to have a small repro solution that I can run?
I'll set this up tomorrow because I have to go to work right away :) Thanks for the feedback
What i did:
- Create a Fresh MauiRector-Project with Template from Visual Studio
- Named it: "MauRec4"
- on MainPage.cs:
that's all :)
output.mp4
You're adding a Page (FooterPage) inside a Grid, furthermore you're creating a Label inside a CanvasView.
A couple of things:
- Please ensure you understand how a MAUI application works following the MS documentation: https://learn.microsoft.com/en-us/dotnet/maui/what-is-maui?view=net-maui-8.0
- MauiReactor has a documentation web site too that shows how to create an application : https://adospace.gitbook.io/mauireactor
- MauiReactor CanvasView is a somewhat advanced concept that requires Skia, please read documentation here:
https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/graphicsview?view=net-maui-8.0
https://adospace.gitbook.io/mauireactor/components/graphics