-
Notifications
You must be signed in to change notification settings - Fork 144
Description
Hello, I work on the debugger that ships with the C# extension.
On arm64 macOS, the C# extension will default to debugging using the debugger that matches the machine architecture as long as an arm64 .NET runtime is installed. At least in the configuration used by dotnet/vscode-csharp#4900, Azure Functions will run in an x64 process, causing debugging to fail.
If Azure Functions always uses an x64 process, the following should be added to the template:
"targetArchitecture": "x86_64"
If the correct architecture is more complicated then that, hopefully a command can be used to query the Azure functions extension for the right architecture.
Note that the debugger will currently ignore targetArchitecture
in scenarios where the debugger only installs one architecture. Which is currently the case for all platforms except for arm64 macOS, though it is possible that someday we could support this on Windows.