Getting debug messages in WinDbg

Hi,

I need to get WinDbg on my host machine to display debug messages
similar to those which DbgView produces.

Unfortunately, I **cannot** run DbgView on the target machine as it is
being controlled by WLK and reboots often (deliberately).? It is set
with the /debug option in its boot configuration (Windows 7) and will
talk to the host using a null-modem cable.? The driver I’m trying to
debug is a checked version built with VS2005.

A colleague says that WinDbg can do this, but can’t remember how he
got it to do so.

I’ve spent the past couple of days searching for the answer, but
haven’t found anything.

Can anyone help?? Thanks in advance.

Geoff Kennedy
Software Developer
Belcarra Technologies (2005)

“The stupidest question is the one not asked” - source unknown

Hmm. Not really sure what you’re trying to do here that’s different than a standard windbg kd session - that is, displaying the results of DbgPrint on the target in WinDbg on the host.

Do you just mean specially formatted or something like that?

mm

I’m equally confused, unless you means this:
http://www.osronline.com/article.cfm?article=295
wrote in message news:xxxxx@windbg…
> Hmm. Not really sure what you’re trying to do here that’s different than
> a standard windbg kd session - that is, displaying the results of DbgPrint
> on the target in WinDbg on the host.
>
> Do you just mean specially formatted or something like that?
>
>
> mm
>

What I am looking for is output like this:

00000006 16:16:47 DriverEntry : [–]: ENTER: built on May 12 2010 16:37:28 with MSVC 1400 compiler
00000007 16:16:47 DriverEntry : [–]: DVERSION: 02-03-07-098
00000008 16:16:47 DriverEntry : [–]: reg path: \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\BTCUsbLan
00000009 16:16:47 DriverEntry : [–]: NDIS version: 5.0
00000010 16:16:47 GlobalParseReg : [–]: using path “\REGISTRY\MACHINE\SYSTEM\ControlSet001\services\BTCUsbLan”
00000011 16:16:47 ReadKeyVals : [–]: couldn’t open “NetworkLIP”, defaulting
00000012 16:16:47 ReadKeyVals : [–]: couldn’t open “NetworkSIP”, defaulting
00000013 16:16:47 ReadKeyVals : [–]: couldn’t open “NetworkMask”, defaulting
00000014 16:16:47 ReadKeyVals : [–]: couldn’t open “NdisIfType”, defaulting

etc.

This is from Dbgview - I realize that I can pass that through to WinDbg.

My point is, I CANNOT run DbgView on the test machine. I need that same kind of output on the machine running WinDbg.

Thanks for the suggestion about the registry key - it didn’t do anything for me.

Also, what’s this DbgPrint all about? Is that something which has to be put into the code under test? I don’t have control of the code, but it WAS built as a “debug” version with VS2005.

Thanks.

GLK

OK…got it!!!

I didn’t realize that the registry key had to be set on the TARGET machine.

I have done so and all seems to be working the way I want.

Thanks for all your help!

GLK