Home > Blockchain >  How to debug a legacy Azure function
How to debug a legacy Azure function

Time:05-25

I've been given the task to debug an Azure function on VS 2022 targeting .Net Framework 4.8. While its straight forward to debug it in .Net Core 3.0 or later, I keep getting the error - A project with an Output Type of Class Library cannot be started directly, when I try to run it by pressing F5. Looking around, I followed this link to download Azure functions core tools; enter image description here

While I can run and debug functions written in .Net Core 3.1 and .Net 6 but I'm struggling with this legacy function. Any help is really appreciated.

CodePudding user response:

We have tried to create Azure function with .net framework 4.8 and successfully tested in our local by using visual studio 2022.

  • We have installed enter image description here

    • Able to debug successfully as shown below

    enter image description here enter image description here

  • Related