https://bugs.winehq.org/show_bug.cgi?id=57266
Bug ID: 57266 Summary: Unable to use remote debugger with wine Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: tapika@yahoo.com Distribution: ---
Created attachment 77191 --> https://bugs.winehq.org/attachment.cgi?id=77191 Logs from msvsmon
Wine as additional compatibility layer for linux is quite awesome, as it allows to run windows application in linux out of box. (Without actually porting them to linux).
This would save porting time and effort if debugging with wine would work out of box.
I have placed .net 4.8 framework executable into Wine64. Please note that running given executable does not work because of some error occurring in .net framework.
I think it's irrelevant which error or exception occurs at that point of time, but it should be possible to debug that exception using remote tools for that purpose.
Remote Debugging - overview: https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging?vie...
From here: https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-cpp...
Download tools for remote debugging for Visual studio you're using. In my case it was "Visual Studio 2022", 'AMD64' architecture.
Install it on wine64 (don't remember exact commands, but normal execution)
Run following commands:
wine64 cmd c: cd "C:\Program Files\Microsoft Visual Studio 17.0\Common7\IDE\Remote Debugger\x64" msvsmon.exe /installed /nofirewallwarn /noauth /anyuser /nosecuritywarn
This will start remote tools on port 4026.
From Visual studio, C++ project, Project properties > Debugging.
Debugger to launch: Remote Windows Debugger.
Remote Command: Z:\home<path to executable> Working directory: Z:\home<path to directory of executable> Remote server name: localhost:4026 (I have used windows 11, wsl installation, ubuntu distribution) Connection: Remote with no authentication Debugger type: 1. Native Only 2. Mixed (.NET Framework)
1 gives in Visual studio following error:
Unable to start program 'Z:\home....exe'.
Catastrophic failure
2 gives in Visual studio following error:
Unable to start program 'Z:\home....exe'.
Not implemented
During 1 & 2 I can see following messages - see logs.txt
Can this be fixed somehow ?