Search code examples
azurevisual-studio-codeazure-functionsazure-functions-core-tools

How do I change my Azure function deployment publish configuration from release to debug?


I have created an Azure function app and a function called "Stripe" for listening for Stripe webhooks. I've installed all Azure extensions in VS Code and in the workspace dropdown I can click on deploy and it deploys and runs in Azure. I can connect to the url and all is ok!

But, when I click on "Deploy to func app" here enter image description here

I notice that the deployment always builds/publishes with --configuration "Release" enter image description here

QUESTION - How do I change the configuration from Release to debug either in some config file or from the cli?


Solution

  • As of now, Visual Studio Code doesn't support Azure Functions remote debugging.

    Remote debugging is possible from the specific versions of Visual Studio - Azure Functions: VSRemotedebugging

    There is a Visual Studio Code limitation on remote debugging, and currently the Remote Debugging is supported only in Node JS Azure App Service through VS Code.

    I would suggest raising a ticket in GitHub of VS Code Request features and VS Code Report Issues will provide the quick & better resolution from VS Code Official Support.