-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot debug dotnet Docker amd64 container on host OSX M2 #4009
Comments
@eitanbehar What is the error message you're seeing? |
@alexyaang there is no error (at least I don't see it), the container runs, but the breakpoint is faded out with message that |
It's possible that an Apple Silicon Macbook is not capable of debugging an amd64 container. We should investigate @alexyaang. |
@eitanbehar Thanks for providing more info! I'll do some investigating since I have a M1 Mac as well. 👍 @bwateratmsft That is a possibility. time to try it myself |
@alexyaang thanks for looking into this, please, let me know if more details are needed. |
@eitanbehar I was able to replicate this issue and I think I know why. 😄 Can you drop the contents of your |
@alexyaang sure, adding the whole project for better share |
@eitanbehar After further investigation, it seems that the core issue lies in the inability for our debuggers to debug an amd64 container on an arm64 machine. This explains why, when you remove the Without the Like you mentioned, removing the Thank you for your cooperation and bringing this to our attention :) |
@alexyaang thanks your efforts on this. So if I understand correctly, this scenario is not currently supported, do you happen to know if there is a plan to address it in a near future. I am not looking for a commitment, just your gut feelings on this. |
@eitanbehar Your understanding is correct. I believe this scenario is not supported in .NET 6 or .NET 7. However, progress is being made in .NET 8 :) dotnet/dotnet-docker#4388 (comment) |
I'll close this as a dupe of #2884. Hopefully this becomes available soon! |
Type: Bug
https://code.visualstudio.com/docs/containers/debug-netcore
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/runtime:6.0
Extension version: 1.25.2
VS Code version: Code 1.80.0 (Universal) (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T13:39:33.766Z)
OS version: Darwin arm64 22.5.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: