在非开发机器上调试windows驱动和user mode客户端的的方法

host os: Windows 7 with Visual Studio 2008 and vmware installed
target os: windows xp, running on vmware

Now we are developing a user mode application using vc 2008 and a windows driver using wdk. We build binary files (including  .exe and .sys files) on host os, and run them on target os.

Problem: How to debug them.

Solution:
1.在host机器上运行windbg,连接到windows xp上,远程调试sys文件。
   
2.在client上利用windbg本地调试exe文件。
    a) 在host机器上共享出源代码所在的盘符,设置好权限
    b) 在vmware中把windows xp所在的client的网络连接设置为host only
    c) 在client上,打开cmd,利用“net use //192.168.201.1 /user:vigour”命令连接到host,其中192.168**为host的ip,vigour为共享的用户名。
    d) 在client中的explorer中,把host共享出来的盘符映射为本地盘符。保持盘符的名称相同,如都是D盘。
    e) 在client中安装windbg,利用windbg本地调试exe文件。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值