Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 Remote Debugging: Network Connection Lost

  1. Installed Visual Studio Remote Debugger 2017 on Windows Server 2012.
  2. Running Visual Studio 2017 on my laptop, I attached my code successfully to a process running on the server SOMESERVER:4022.
  3. I run the target process on the server up to where my breakpoint should hit.
  4. Visual Studio pushes to the front as if my breakpoint is about to hit.
  5. I get "The network connection to SOMESERVER:4023 has been lost. Debugging will be aborted.

Notice that I connect using port 4022 but the connection loss notes 4023. I assume it's because I'm running x86 application on x64 server.

Ideas?

like image 465
Matt Avatar asked Jan 28 '26 21:01

Matt


1 Answers

While not identical (VS 2022 running on Windows 11 and Windows Server 2019 running in VMware), in my case it was solved by using a previous version of VS 2022 Remote Tools: 17.12, as 17.13 seemed to be the culprit of immediate connection drop.

like image 85
Guillermo Garcia Maynez Avatar answered Jan 30 '26 14:01

Guillermo Garcia Maynez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!