[Dev Tip] Remote debug


Sometime, you need to debug a program on a server or something like that and it doesn’t have an installed Visual Studio. Then how to debug that program?

1) On target machine

1.1) Install Remote Tools for Microsoft Visual Studio XXX with XXX is version of your VS.

1.2) run Remote Debugger

server

Note: It opens port 4018.

2) On you machine

2.1) Attach debug process

client1Note: 192.168.16.254 is target’s IP.

Choose your process which you want to debug. At here i debug IIS.

client2

Attach that process and debug. 🙂

Note: Modules windows, Load symbol

or

set up debug 1

Advertisements