JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
268 stars 10 forks source link

Mono Debugger cannot be attached to WinUI applications? #88

Closed ne0rrmatrix closed 6 months ago

ne0rrmatrix commented 6 months ago

Title says it all. Downloaded extension and tried to run an app in debug mode. Cannot run it on windows. No idea why it is not working. I uninstalled maui extension and installed yours. I am now going to uninstall and go back to I know what works. Your blog post looks great but the very first time I try and run it on a known good repo it just flat out does not work. I don't have time to troubleshoot this. It looked super nice on the blog post.

I will try it again sometime in the future. I was hoping it would just work. I hope I can get dotnet maui working again in vscode. I wish it was as easy to use as visual studio.

I will mention it was working when I used the dotnet maui extension. I was told to uninstall Maui extension on reddit. Was this not correct? I don't want conflicting extensions. Do I need to run it side by side with the maui extension?

JaneySprings commented 6 months ago

Please, read the readme https://github.com/JaneySprings/DotNet.Meteor?tab=readme-ov-file#compatibility

WinUI applications don't use Mono framework. To debug WinUI application you should use a VisualStudio .NET Core debugger (VSDBG.EXE), distributed ONLY WITH VisualStudio for Windows or C# VSCode extension.

ne0rrmatrix commented 6 months ago

So if I want to run Maui windows apps I have to use an extension other than yours? Any plans to add support for windows in the future? Its great I can run in release mode. I almost never run in release mode.

JaneySprings commented 6 months ago

For now, you can run WinUI Applications without debugging, with XAML HotReload and Profiling. VSDBG says:

You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.

I think that i don't have the rights for using VSDBG.

ne0rrmatrix commented 6 months ago

Yes I understand. I was just incredibly frustrated and angry. I apologize for my reaction. I have spent months looking for an alternative to what I currently use. I have mostly resigned myself to running it from the command line to do anything other than use vscode or VS 2022 as an editor. I had hopes with your addon I could just have a seamless experience that would just work. I think I overhyped and most likely jumped to the wrong conclusions. I just saw the shiny images on your package and my eyes glazed over. I wish you the best of luck. I will be going back to powershell for building. I can try your addon in VScode and see if it behaves in a friendly way. I had hoped it would be user friendly.

I never realized building windows apps was limited to just MS. I am honestly new enough and started with dotnet and maui. I have some previous experience but that was dotnet 5 and I was playing around then. Ty for taking the time to respond. I will stop spamming your repo now.

JaneySprings commented 6 months ago

I will be going back to powershell for building.

Why are you using powershell? .NET Meteor can build it and run: image