-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
No debug logs on MAUI when launching within Visual Studio #3341
Comments
Could we create a |
Would that logger be aware of where to output stuff? Or just write to both? |
I think it would have to write to both. I haven't found a reliable way to know which IDE might have spawned a debug session. |
From a customer cc @JLuse
Similar to ASP.NET (.NET Framework), developers usually run the app from within Visual Studio and there's no console anywhere.
To get the data within the debugging panels of Visual Studio, one can't use
Console.WriteLine
. And instead requiresTrace.WriteLine
.We're aware of that and changed the default on ASP.NET:
sentry-dotnet/src/Sentry.AspNet/SentryAspNetOptionsExtensions.cs
Line 35 in 5f0f087
We need to at least document this for MAUI users on Visual Studio. Or, if we can, figure out at runtime if we're on Visual Studio or not and toggle between Console and Trace.
The text was updated successfully, but these errors were encountered: