dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.16k stars 4.71k forks source link

Attaching an interop debugger to an x64 .Net on ARM64 fails to intiailize debugging #103235

Open auott opened 4 months ago

auott commented 4 months ago

Description

Attaching an interop (managed + native) debugger to an x64 .Net on an ARM64 Windows machine fails to initialize managed debugging. The debugger will never see managed breakpoints or managed debugging events.

Reproduction Steps

On an ARM64 Windows 11 machine, download and install the x64 dotnet runtime as well as Visual Studio (with managed and native workloads). Create a new .Net project (unit test, console) and add code such that the process can run and you can attempt to attach the debugger to it. Put a breakpoint in the code, launch without debugging, and then try to attach with interop debugging.

Expected behavior

Debugger attaches and hits the breakpoint.

Actual behavior

Debugger does not hit the breakpoint.

Regression?

No.

Known Workarounds

None.

Configuration

No response

Other information

No response

dotnet-policy-service[bot] commented 4 months ago

Tagging subscribers to this area: @tommcdon See info in area-owners.md if you want to be subscribed.