第一步:将"C:/Program Files/Microsoft Visual Studio .NET 2003/Common7/Packages/Debugger /msvcmon.exe" Copy到目标机器(需要远程调试的机器)
第二步:为msvcmon.exe 创建快捷方式,右键属性添加 -anyuser -tcpip 属性,运行msvcmon.exe
第三步:设置Configuration properties
中的Debugging 的connection
为:Remote via TCP/IP (Native only)。REMOTE Machine
设置为 (目标机器IP)。 Remote Command:为要测试的*.exe文件的路径。(如图所示)
第四步:直接start运行或者附加到进程上就可以调试了