Not able to use remote debugger in VS 2019

Dmitry Shershnev 1 Reputation point
2020-11-25T07:55:28.85+00:00

42466-debuggingwillbeaborted2.png

Dear All,
When i try to "attach to process", then after several seconds i get the message about debugging will be aborted.

https://cushen.wordpress.com/2014/06/20/fixing-the-network-connection-to-my-computer-has-been-lost-debugging-will-be-aborted/,
i checked it but this is not my case.
The VM is in azure and firewalls are deactivated there. What else can cause the error? One answer that i found tells that VS had a error but it was fixed in 16.4; but my version is 16.8.2.
Thank you.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
961 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 28,756 Reputation points Microsoft Vendor
    2020-11-26T07:35:49.2+00:00

    Hi @Dmitry Shershnev ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    From the error message, it seems there are something wrong with the network connection. Please try to ping the remote VM and make sure that you can get reply from the VM.

    If VM doesn’t reply to the ping, please try to reboot the VM and check if VM is correctly configured on the network. Besides, did the remote debugger work well before? If this is the first time that you try to use remote debugger, you can refer to the Network configuration that mentioned here: Network configuration, and make sure that you have met the requirements of network configuration.

    If VM reply to the ping, the issue may be not caused by the network connection, please close VS and relaunch VS, then try to “attach to process” again.

    I also suggest you try to reset settings of VS(select General at step 4 and export the environment settings to make a backup if necessary), and repair VS from VS Installer > VS 2019 > More > Repair.

    In addition, check if some other configurations prevent this connection, such as authority, third-party extensions or anti-virus software, you can try to disable them(or configure the authority) temporarily and try to remote debug again.

    I hope this helps.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.