Microsoft Remote Debugger (msvsmon.exe)

Questions about Wine on Linux
Post Reply
Cagnulein
Level 2
Level 2
Posts: 17
Joined: Sun Sep 20, 2009 8:32 am
Contact:

Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein » Tue Jun 25, 2019 2:47 am

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: 17
Joined: Sun Sep 20, 2009 8:32 am
Contact:

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein » Tue Jul 02, 2019 8:11 am

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: 1109
Joined: Tue Nov 22, 2016 5:39 pm

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by DarkShadow44 » Tue Jul 02, 2019 11:48 am

Why do you think this helps?

Cagnulein
Level 2
Level 2
Posts: 17
Joined: Sun Sep 20, 2009 8:32 am
Contact:

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein » Wed Jul 03, 2019 1:06 am

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: 1109
Joined: Tue Nov 22, 2016 5:39 pm

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by DarkShadow44 » Wed Jul 03, 2019 11:51 am

Could be right, or completely wrong. Why not just copy a working DLL from windows to try?

Cagnulein
Level 2
Level 2
Posts: 17
Joined: Sun Sep 20, 2009 8:32 am
Contact:

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by Cagnulein » Thu Jul 04, 2019 2:26 am

Yes i've tried but it doesn't seems to change anything (i override it to native in winecfg)

tomonori.manome
Newbie
Newbie
Posts: 1
Joined: Wed Jul 22, 2020 12:03 am
Location: Kyoto, Japan

Re: Microsoft Remote Debugger (msvsmon.exe)

Post by tomonori.manome » Tue Jul 28, 2020 3:58 am

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

Post Reply