Azure / Azure/Azure-Functions

Unable to run and debug function app in VS Code

Open
#2,071 16 comments 5 reactions 1 assignee Claimed by @fabiocav View on GitHub
v4-bug
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

**Function App name**

N/A - local

**Tools used**

- VS Code
- Azure Functions VS Code Extension `v1.5.2`
- `dotnet --version` = `6.0.100-rc.2.21505.57`
- `func --version` = `4.0.3780`

**New V4 app or existing V3 app migrated to V4**

New v4 app - dotnet in-proc

**Issue**

After creating a new v4 app (.net v6 in-proc) using the functions VS Code extension, I am not able to run and debug the function app with the `.vscode` configuration that was added by the template. The application runs fine and as expected when using cli i.e. `func start`. My assumption here is that the templated .vscode config is wrong?

**Expected**

Pressing F5 in VS Code after a newly generated function app with VS Code config should build and run the function application in debug mode

**Actual**

Pressing F5 in VS Code after a newly generated function app with VS Code config builds and runs the function app, which then shuts down immediately after

Screen Shot 2021-10-21 at 2 19 09 PM

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.