Skip to content

Unable to Start or Debug Azure Function from VSCode on MacOS #3175

Open
@rlvandaveer

Description

@rlvandaveer

I am unable to start or debug any Azure Functions on multiple Macs. When I click Debug -> Attach to .NET Functions it kicks off a myriad of tasks and finally func host start. All seems to go well until the function starts and then it abruptly aborts:

Executing task: func host start <

Azure Functions Core Tools
Core Tools Version:       4.0.4483 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.1.3.17473

[2022-05-17T01:56:06.853Z] Found /Users/omitted/Code/Sandbox/http-azure-fun/http-azure-fun.csproj. Using for user secrets file configuration.

Functions:

        httpFunc: [GET,POST] http://localhost:7071/api/httpFunc

For detailed output, run func with --verbose flag.
The terminal process "/usr/local/bin/pwsh '-c', 'func host start'" terminated with exit code: 143.

Terminal will be reused by tasks, press any key to close it.

I can run any function from outside VSCode without problem. While functions execute just fine from a terminal, I cannot seem to attach and debug them. Using a standard .NET Core Attach launch configuration and selecting the func start process causes VSCode to process for a moment and then stops. No message is shown, no output is produced in any pane I can find.

dotnet --version
6.0.300

PowerShell
7.2.3

VSCode
Version: 1.67.1
Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d
Date: 2022-05-06T12:37:16.526Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin x64 21.4.0

Azure Function Extension
v1.6.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions