visual studio之远程调试

远程调试需要以下几个步骤:

1、在远程设备上安装remote debugger,启动,选择tools->options,设置为no authenication,勾选allow any user to debug,并将maximum idle time设为0(即可以一直闲置而不会自动退出进程)

2、本地设备,启动visual studio,两种方式连接远程进程:

a、连接正在运行的进程,菜单tools->attach to process,transport选择remote,qualifier填写远程设备ip地址和端口号,如:10.20.20.21:4015,选择相应进程,完成attach

b、连接exe,并在本地执行运行,在工程的属性中,选择Debugging选项,Debugger to launch选择remote windows debugger,remote Command填写目标程序的完成路径,Remote Server Name为远程设备的ip地址,connection选择no authenication,然后就可以run工程,进行远程调试

你可能感兴趣的:(visual studio之远程调试)