Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Using kd.exe

Nathan_NesbitNathan_Nesbit Member Posts: 194
Here is a summary of a mail thread about using kd.exe rather than
windbg. Hopefully someone here will find it useful.

Why would you want to use kd.exe? Well if you find you are using only
the command window in Windbg then one might find it useful to dump all
that GUI stuff and just focus on the command window, which is exactly
what kd.exe is.

The command line options & env vars for kd.exe are the same as for
Windbg. The commands in the debugger are the game.

If you use debugger remoting then you can attach a windbg client to a kd
server and get windows for those times you need it.

Locals work great in kd. "dv" is the command to list locals. "dt
local_var_name" displays locals that are of complex types. "dt
global_var_name" displays globals.

.frame lets you switch which stack frame locals are displayed for. Kn
can be used to give you the stack frame numbers and avoid counting all
the time.

By default the console mode debuggers do not load source line
information. But this is easy enough to turn on. Check out the docs
for ".lines" and "l+" Also it can be turned on with "-lines" on the
command line.
One you turn source line loading on you can even view source code files.
Set your source path with ".srcpath" and then use the "ls" command to
view source.

You are currently subscribed to windbg as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-windbg-$subst('Recip.MemberIDChar')
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 15 November 2021 Live, Online
Writing WDF Drivers 24 January 2022 Live, Online
Developing Minifilters 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online