The debug profile is missing the path to the executable to debug

Shunmuga Priya Kandasamy (INFOSYS LIMITED) 131 Reputation points Microsoft External Staff
2021-10-27T09:37:15.19+00:00

Hi Team,

I am getting the error while debugging the azure function. Please provide me with the steps or ways to fix this.

144174-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shunmuga Priya Kandasamy (INFOSYS LIMITED) 131 Reputation points Microsoft External Staff
    2021-10-27T11:01:37.967+00:00

    @MughundhanRaveendran-MSFT - Thanks for the quick response. I tried to check azure function core tools installed in my machine. But not sure how or where to check. Also, when i checked the project properties, i am not ale to see the executable options as mentioned above. Pasting the screenshot which i am getting in my project properties. Also, when i checked in the folder in AppData\Roaming, there is no such npm folder exists. Please guide me to resolve this.
    144118-image.png


1 additional answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2021-10-27T10:00:00.637+00:00

    @Shunmuga Priya Kandasamy (INFOSYS LIMITED) ,

    Thanks for reaching out to Q&A.

    Please try the below steps which will help in resolving this issue

    1. Make sure you have azure-functions-core-tools installed.
    2. Open up your project's properties, right-click project root | properties | Debug You should see this: enter image description here
      144149-image.png
    3. Set the Launch to Executable
    4. Set the Executable to the path of your azure-functions-core-tools executable - in AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.exe

    Similar issue reported here as well: https://github.com/Azure/Azure-Functions/issues/110

    Feel free to reach out to me if you have any further queries.

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.