Once you have the correct installer for your target machine's operating system, follow these steps:
Remote Debug a C++ Project - Visual Studio (Windows) | Microsoft Learn
The wizard will automatically configure the Windows Firewall to allow the debugger through the necessary ports (typically 4026 for VS 2022). How to Connect from Visual Studio After the remote tools are running on the target machine: In Visual Studio, go to Debug > Attach to Process .