https://bugs.winehq.org/show_bug.cgi?id=21483
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.microsoft.com/do |https://web.archive.org/web |wnloads/details.aspx?Family |/20170226170826/http://down |ID=fe6f2099-b7b4-4f47-a244- |load.microsoft.com/download |c96d69c35dec&displaylang=en |/c/4/b/c4b15d7d-6f37-4d5a-b | |9c6-8f07e7d46635/setup.exe Summary|changed token security |Wine 1.1.33+ changed token |breaks .NET Framework 2.x, |security breaks .NET |4.x SDK tools (debugging of |Framework 2.x SDK tools |managed code) |(debugging of managed code | |using 'Cordbg' and 'Mdbg')
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download links from Internet Archive:
https://web.archive.org/web/20170226170826/http://download.microsoft.com/dow... (.NET Framework 2.0 SDK)
https://web.archive.org/web/20200104162030/https://download.microsoft.com/do... (CLR Managed Debugger (mdbg) Sample 4.0)
https://web.archive.org/web/20191231080542/https://download.microsoft.com/do... (Windows SDK for Windows 7 and .NET Framework 4.0) -> NOTE: You need 32-bit WINEPREFIX for this (WINEARCH=win32), as it only includes the x86 bits.
There is also a github repo:
https://github.com/SymbolSource/Microsoft.Samples.Debugging
---
'Cordbg' is an old wrapper for 'MDbg':
https://web.archive.org/web/20060205033122/http://blogs.msdn.com/jmstall/arc... ("Summary of the role of MDbg and Cordbg")
It's not shipped with .NET Framework 4.0 SDK, only in .NET Framework 2.0 SDK.
--- snip --- $ wine "c:\windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /debug hello.cs
$ ll hello.* -rw-rw-r--. 1 focht focht 112 Jan 4 17:59 hello.cs -rwxrwxr-x. 1 focht focht 3584 Jan 4 18:00 hello.exe -rw-rw-r--. 1 focht focht 11776 Jan 4 18:00 hello.pdb --- snip ---
@Robert / comment #9
'Mdbg' from .NET Framework 4.0 SDK and your separate example download worked even with very old Wine versions. I've tested with Wine 1.4 and Wine 1.6.2:
--- snip --- $ wine "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\Mdbg.exe" ./hello.exe ...
MDbg (Managed debugger) v4.0.30319.1 (RTMRel.030319-0100) started. Copyright (C) Microsoft Corporation. All rights reserved.
For information about commands type "help"; to exit program type "quit".
run ./hello.exe
... STOP: Breakpoint Hit ... 4: { --- snip ---
'Mdbg' from .NET Framework 2.0 SDK:
--- snip --- $ wine "c:\Program Files\Microsoft.NET\SDK\v2.0\Bin\mdbg.exe" hello.exe
MDbg (Managed debugger) v2.0.50727.42 (RTM.050727-4200) started. Copyright (C) Microsoft Corporation. All rights reserved.
For information about commands type "help"; to exit program type "quit".
run hello.exe ... Hello World ! ... STOP: Process Exited --- snip ---
'Cordbg' from .NET Framework 2.0 SDK:
--- snip --- $ wine "c:\Program Files\Microsoft.NET\SDK\v2.0\Bin\cordbg.exe" hello.exe
Microsoft (R) Common Language Runtime Test Debugger Shell Version 2.0.50727.42 (RTM.050727-4200) Copyright (C) Microsoft Corporation. All rights reserved.
(cordbg) run hello.exe
Hello World ! ... Process exited. --- snip ---
Be aware when using Wine built with (LLVM) MinGW cross-toolchain you might run into bug 48417 ("Wine 32-bit builtins in PE format occupy low address space range, preventing non-relocatable native executables from being loaded") when trying to install .NET Framework 2.0 SDK ('winetricks -q dotnet20sdk' fails).
$ wine --version wine-5.0-rc4
Regards