adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
588 stars 49 forks source link

Debug is not working [global::System.Diagnostics.Debugger.Break();] [Windows Machine] #238

Closed itschnie closed 5 months ago

itschnie commented 5 months ago

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();"

grafik

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:

  1. Open Visual Studio 2022
  2. Trying to Open an App in Debug-Mode
  3. It breaks at some point, don't know, why.

Screenshots

grafik grafik

Desktop (please complete the following information):

adospace commented 5 months ago

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?

itschnie commented 5 months ago

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

itschnie commented 5 months ago

What i did:

MainPage.cs.txt

that's all :)

https://github.com/adospace/reactorui-maui/assets/73386340/c759a812-d428-41d9-9539-1b184fcc199c

adospace commented 5 months ago

You're adding a Page (FooterPage) inside a Grid, furthermore you're creating a Label inside a CanvasView.

A couple of things: 1) 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 2) MauiReactor has a documentation web site too that shows how to create an application : https://adospace.gitbook.io/mauireactor 3) 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