Skip to content

Mac Sonoma 14.4.1 with arm arch fails to start x64 debug #7957

Closed
@Sh18RW

Description

@Sh18RW

Environment data

dotnet --info output:

.NET SDK:
 Version:           9.0.102
 Commit:            cb83cd4923
 Workload version:  9.0.100-manifests.7c7c79ca
 MSBuild version:   17.12.18+ed8c6aec5

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  14.4
 OS Platform: Darwin
 RID:         osx-x64
 Base Path:   /usr/local/share/dotnet/x64/sdk/9.0.102/

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.1
  Architecture: x64
  Commit:       c8acea2262

.NET SDKs installed:
  9.0.100-preview.1.24101.2 [/usr/local/share/dotnet/x64/sdk]
  9.0.102 [/usr/local/share/dotnet/x64/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.0-preview.1.24081.5 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.1 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.0-preview.1.24080.9 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.1 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]

Other architectures found:
  arm64 [/usr/local/share/dotnet]
    registered at [/etc/dotnet/install_location_arm64]

Environment variables:
  DOTNET_ROOT_ARM   [/usr/local/share/dotnet]
  DOTNET_ROOT_X64   [/usr/local/share/dotnet/x64]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

VS Code version: 1.96.4 (Universal)
C# Extension version: 2.61.28

Steps to reproduce

Set a launch option

{
            "name": "Mac x64 Server",
            "type": "coreclr",
            "request": "launch",
            "program": "/usr/local/share/dotnet/x64/dotnet",
            "args": ["${workspaceFolder}/bin/Content.Server/Content.Server.dll"],
            "console": "integratedTerminal",
            "stopAtEntry": false,
            "targetArchitecture": "x86_64",
        },

and start to debug.

Behavior

I need to switch from ARM to x64 for my .NET project. The project has been migrated from .NET 8 to .NET 9, and now I need to use version 9. However, for some reason, the x64 SDK is not working properly for debugging, and it can only be used for running the project. ARM versions are working fine (but I cannot use it).
So if I start debug, it begins to execute, but suddenly stops without any message.
Also the debug console contains

------------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
dotnet (85191): Loaded '/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App/9.0.1/System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The program '[85191] dotnet' has exited with code 0 (0x0).

I am not sure if it is a .NET 9 issue, but I have not been able to find anything similar. Perhaps it is just a problem on my end for some reason.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions