Microsoft Remote Debugger (msvsmon.exe)

Questions about Wine on Linux
Locked
Cagnulein
Level 2
Level 2
Posts: 19
Joined: Sun Sep 20, 2009 8:32 am

Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein »

Hi, i'm trying to debug a .NET application on Wine.
I would like to open Visual Studio on my Windows host pc and attaching to linux wine .NET app using msvsmon.exe
From Visual Studio i can see the linux pc on the "remote debugging machines" but i can't connect to it in order to debug managed code.

Is there any other way to debug .NET managed code (without mono)?
Thanks
Cagnulein
Level 2
Level 2
Posts: 19
Joined: Sun Sep 20, 2009 8:32 am

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein »

I think that this one could be useful https://rw.internals.io/post/fix-remote ... es-wwsapi/ if only i could install it
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by DarkShadow44 »

Why do you think this helps?
Cagnulein
Level 2
Level 2
Posts: 19
Joined: Sun Sep 20, 2009 8:32 am

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein »

Because i think that the webservices API implementation in Wine could be not fully compliant with the Microsoft Remote Debug. So using the webservices.dll could solve the issue. Don't you think?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by DarkShadow44 »

Could be right, or completely wrong. Why not just copy a working DLL from windows to try?
Cagnulein
Level 2
Level 2
Posts: 19
Joined: Sun Sep 20, 2009 8:32 am

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein »

Yes i've tried but it doesn't seems to change anything (i override it to native in winecfg)
tomonori.manome
Newbie
Newbie
Posts: 3
Joined: Wed Jul 22, 2020 12:03 am

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by tomonori.manome »

Hello,
I have a similar problem. I'd appreciate if someone could give me a hint for remote debugging
.NET application.

From Window10 PC and VisualStudio2019, I am attaching to the wine process
running on the Fedora32 that is running on the VirtualBox installed in the Windows.
Visual Studio 2019 can list the wine processes on Fedora/VirtualBOX successfully, but it takes quit long time
to attach, and finally it failed.

Environment:
Wine version: 5.12(staging)
.NET Framework on Wine: Microsoft 3.5SP1 (I also tried upto 4.7.2 using winetricks.)
Fedora's firewall is diabled. port 4024, 4025 are set to be port-fowarded via VirtualBox's NAT interface.
Target application: Windows Forms, Microsoft .NET Framework 3.5.
msvsmon.exe authentication setting is disabled (anyone can attach)

Error messages:
msvsmon.exe first displays warning message, saying appropriate .net framework is not installed.
(.NET Frameowork 4.0.40319 is not installed, and it cannot debug managed application)

With Best Regards,
-- Tomonori Manome
Locked