If I add Console.WriteLine("Hello!") in a .NET MAUI application running on macOS, I don't see the message in VS Code's "Debug Console".
However, if I run the app such as:
$ ./bin/Debug/net8.0-maccatalyst/maccatalyst-arm64/MyApp.app/Contents/MacOS/MyApp
2024-04-30 11:39:27.336 MyApp[28217:8881808] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2024-04-30 11:39:33.138 MyApp[28217:8881808] Hello!
Then I see the message.
Steps To Reproduce
dotnet new maui
Add a Console.WriteLine("Hello!") somewhere in the app
Run the project in VS Code
The log message does not appear
Expected Behavior
I can see CWL messages in the "Debug Console" window.
Environment Information
macOS arm64
.NET 8.0.204 SDK
.NET MAUI Extension: v0.11.34 (pre-release)
| VS Bug 2049431
Describe the Issue
If I add
Console.WriteLine("Hello!")
in a .NET MAUI application running on macOS, I don't see the message in VS Code's "Debug Console".However, if I run the app such as:
Then I see the message.
Steps To Reproduce
dotnet new maui
Console.WriteLine("Hello!")
somewhere in the appExpected Behavior
I can see CWL messages in the "Debug Console" window.
Environment Information