Debugging sys inside Visual Studio 2005 with VMware Virtual Debugger?

Can anyone help me with this?

I’ve written mini-redirector driver using IFS DDK 2003 kit and have
three projects in Visual Studio 2005: sys kernel driver, network
provider dll and a user mode app to start/stop the driver.

I’ve maneged to set up VMware Virtual Debugger in VS2005 so that I
can debug network provider dll and user mode app projects but not
the sys project.

When I set breakpoints in the sys project I get the message
“The breakpoint will not currently be hit. No symbols have been
loaded for this document”

I have WinXP SP2, VS 2005 and VMware Workstation 6.0 on the host
machine and WinXP SP2 on the virtual machine.

Is there a way to load symbols for sys driver project in VS2005?
Do I have to attach to some process to be able to debug sys code?
Is it possible to debug sys project inside a VS2005 at all?

Thanks!

VS does not debug kernel components at all. Windbg is happy to debug VM
based windows kernel drivers. Here is where google took me for a good
right up of how to set up windbg for debugging a VmWare hosted windows
os: http://www.catch22.net/tuts/vmware.asp

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@imis.si
Sent: Wednesday, October 17, 2007 7:17 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Debugging sys inside Visual Studio 2005 with VMware
Virtual Debugger?

Can anyone help me with this?

I’ve written mini-redirector driver using IFS DDK 2003 kit and have
three projects in Visual Studio 2005: sys kernel driver, network
provider dll and a user mode app to start/stop the driver.

I’ve maneged to set up VMware Virtual Debugger in VS2005 so that I
can debug network provider dll and user mode app projects but not
the sys project.

When I set breakpoints in the sys project I get the message
“The breakpoint will not currently be hit. No symbols have been
loaded for this document”

I have WinXP SP2, VS 2005 and VMware Workstation 6.0 on the host
machine and WinXP SP2 on the virtual machine.

Is there a way to load symbols for sys driver project in VS2005?
Do I have to attach to some process to be able to debug sys code?
Is it possible to debug sys project inside a VS2005 at all?

Thanks!


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I know that one can debug kernel drivers with either kd or windbg.
I tried windbg and well I’m not that keen on using it. I was just
wondering if one can use the new VMware Virtual Debugger to debug
a kernel driver through a virtual machine and VS2005. I guess that
is still not possible. Thanks for the reply Mark.

VS does not debug kernel components at all. Windbg is happy to
debug VM based windows kernel drivers. Here is where google took
me for a good right up of how to set up windbg for debugging a
VmWare hosted windows os: http://www.catch22.net/tuts/vmware.asp

I need help with setting up WinDbg. I’ve connected the host and the
virtual machine with:

windbg.exe" -b -k com:pipe,port=\.\pipe\com_1,resets=0

I’ve set “Symbols path” in WinDbg to:

srv*c:\share\symbols*http://msdl.microsoft.com/download/symbols;C:\share

where c:\share is the shared folder on the host machine and the
output path of my VS2005 projects with sys, dll and pdb files.

I’ve set the “Source path” in WinDbg to the source path of my VS2005
projects on the host machine.

I’ve set “Image path” in WinDbg to: c:\share

Now what I do, when I test the driver, is:

  1. copy files from the shared folder to the virtual machine local folder
  2. test the driver within the virtual machine.

I’m able to debug the user mode components of the mini-redirector
with VMware Virtual Debugger inside VS2005. Now I would like
to debug the sys kernel driver. That is, set breakpoints on the
driver source code in WinDbg and step over the code, when I start
the driver in the virtual machine.

How do I set up WinDbg to debug the sys kernel driver in my case?

you can use Microsoft Virtual PC 2007 for Kernel
debugging the details are in

http://blogs.msdn.com/virtual_pc_guy/archive/2005/10/20/482413.aspx

— xxxxx@imis.si wrote:

I need help with setting up WinDbg. I’ve connected
the host and the
virtual machine with:

windbg.exe" -b -k
com:pipe,port=\.\pipe\com_1,resets=0

I’ve set “Symbols path” in WinDbg to:

srv*c:\share\symbols*http://msdl.microsoft.com/download/symbols;C:\share

where c:\share is the shared folder on the host
machine and the
output path of my VS2005 projects with sys, dll and
pdb files.

I’ve set the “Source path” in WinDbg to the source
path of my VS2005
projects on the host machine.

I’ve set “Image path” in WinDbg to: c:\share

Now what I do, when I test the driver, is:

  1. copy files from the shared folder to the virtual
    machine local folder
  2. test the driver within the virtual machine.

I’m able to debug the user mode components of the
mini-redirector
with VMware Virtual Debugger inside VS2005. Now I
would like
to debug the sys kernel driver. That is, set
breakpoints on the
driver source code in WinDbg and step over the code,
when I start
the driver in the virtual machine.

How do I set up WinDbg to debug the sys kernel
driver in my case?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other
seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR
Online at
http://www.osronline.com/page.cfm?name=ListServer

Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php