BurkusCat / Burkus.Mvvm.Maui

A simple MVVM framework for .NET MAUI. It provides: navigation, lifecycle events, parameter passing, native dialog abstractions, and testability.
MIT License
27 stars 5 forks source link

[Feature] .EnableBurkusMvvmDebugMessages() #17

Open BurkusCat opened 1 year ago

BurkusCat commented 1 year ago

Is your feature request related to a problem? Please describe. It would be good if the library provided a way to expose extra debug logging from errors and warnings that occurred within the library.

Describe the solution you'd like Example: It would be good if the library provided a warning if you tried to automatically set a property (#16) but the navigation parameter key did not exist.

Describe alternatives you've considered N/A

Proposed APIs If possible, try to propose how the API might look. For example:

// BurkusMvvmBuilderExtensions
.EnableBurkusMvvmDebugMessages()

Additional context Should the code in this method be surrounded with

#IF DEBUG

#ENDIF

... maybe it would be better to have this code as an example around the builder method usage in the documentation and leave it up to user choice if they wanted to include this in a RELEASE build.