Example of a Web App project for Azure Functions
Since the project is a Web App, by default F5 will launch IIS Express. With a few simple changes to the project settings, you can run the Azure Functions CLI and attach a debugger:
Right-click FunctionsAsWebProject and open Properties.
In the Web tab, choose Start External Program
For the program path, enter the path to
func.exefor the Azure Functions CLI.- If you've installed the Visual Studio Tools for Azure Functions, the path will look something like
C:\Users\USERNAME\AppData\Local\Azure.Functions.Cli\1.0.0-beta.93\func.exe - If you've installed the Azure Functions CLI through NPM, the path will be something like
C:\Users\USERNAME\AppData\Roaming\npm\node_modules\azure-functions-cli\bin\func.exe
- If you've installed the Visual Studio Tools for Azure Functions, the path will look something like
For Command line arguments set
host startFor Working directory, specify the root of the project
CoderCardsWebsiteon your machine.
