vc7远程调试

来源:互联网 发布:plc400软件功能 编辑:程序博客网 时间:2024/05/22 06:15
*假设调试机ip 192.168.0.182   远程机ip 192.168.0.161
*远程机为调试机分配权限,使调试机可以使用远程桌面登陆到远程机器上(这样调试起来方便)。
*调试机上安装visual studio .net 2003
共享调试机上的visual studio上的远程调试目录(以我的机器为例)
c:/program files/microsoft visual studio .net 2003/common7/packages/debugger
*远程机将上面的共享目录考贝到本地,比如:d://debugger
*调试机共享要调试的程序所在目录,比如:d:/important/cvsroot/dv-to-dvd/bin/debug
*远程机将调试机上的目录影射为本地目录。比如:z://
*远程机上以命令行形式执行 d://debugger/msvcmon.exe –tcpip –anyuser
*调试机启动vc. 打开要调试的工程。比如dvtodvd. 选择菜单project->properties
选debuging->remote setting
connection :remote via tcp/ip (native only)
remote machine: 192.168.0.161
remote command: z:/dvtodvd.exe
*debug->start
*就可以调试了。
原创粉丝点击