在非開發機器上調試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文件。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章