Issues while debugging a published Azure function

Ritesh Jain 16 Reputation points
2023-09-26T09:10:47.38+00:00

I am trying to debug a published Azure function app. I've followed all the steps as per the below link but was unable to succeed. It looks remote debugger is not being started. Any suggestions will be helpful. Thanks!

Azure function debugging

The error message is -

ErrorMsg

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

2 answers

Sort by: Most helpful
  1. navba-MSFT 24,795 Reputation points Microsoft Employee
    2023-09-27T07:41:19.37+00:00

    @Ritesh Jain Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are encountering the error System.Runtime.InteropServices.COMException (0x89710023) while performing remote debugging of your Azure function App.

    Please follow the below action plans for now:

    1.Ensure that you have enabled the remote debugging option for your function app and selected the right VS version as shown below:

    User's image

    2.Please make sure your firewall allows port 4024 and its not blocked in your network. You can do a telnet to this port and check from your box.

    User's image

    For more details, refer to Configure the Windows Firewall for Remote Debugging and Remote Debugging Errors and Troubleshooting.

    3.Check out Azure Remote Debugging: Failed to enable remote debuggingException from HRESULT: 0x89710023

    4.Ensure that you have Downloaded and Installed the remote tools required for remote debugging. see here.

    5.While publishing your Function App ensure that you have set the config to Debug mode.

    User's image

    6.To isolate this issue, try remote debugging from a different machine or a different network and check if that works fine.

    If you still see the same issue even after following the above action plan, please do let me know. I would be happy to assist you further.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. Ritesh Jain 16 Reputation points
    2023-10-06T09:15:45.0566667+00:00

    I tried setting up all the provided steps but still no luck. I tried running the telnet command and got a failure error. Not sure if that is the culprit.User's image


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.