Azure / Azure/azure-functions-core-tools
Uninformative error on multiple debug host port conflict
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 15
Description
I am currently debugging multiple Azure Function Apps in Visual Studio 2019 using Azure Functions 1.0.31 on NuGet. Upon launching multiple projects in debug mode, one application will start up successfully, whereas the other one will crash with the following text:

I've found out that setting the command line arguments such that one function starts on a different port seems to solve this issue: `host start --pause-on-error --p `
However, I would expect the console error to inform the developer that the given port is in use and how to resolve the issue (or better yet, warn the user of a port conflict and select a different port automatically if possible).
Contributor guide
Research direction
Start with the host start command and reproduce the issue by launching multiple Function Apps in debug mode, including the --pause-on-error and --p port arguments. Trace how a failed host startup is reported when the default port is already occupied. Done means the console identifies the port conflict and explains how to resolve it, or selects another port if supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100