Visual Studio 2022 Remote Debugger [best] -

Select the process you want to debug from the list and click Microsoft Learn To Launch a Project Remotely (C# / VB):

: On the target machine, you run msvsmon.exe . Back on your main dev machine, you use the "Attach to Process" window in Visual Studio to find the remote machine. visual studio 2022 remote debugger