How to do kernel debugging with only one pc?

Hello,

I’m writing a USB device driver. I would like to ask if there is anyway that I can do kernel debugging with only one PC?
Thanks.

-marilyn

from,

Marilyn.


Get your FREE download of MSN Explorer at http://explorer.msn.com.


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)

To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

use softICE, produced by numega, not free.

----- Original Message -----
From: marilyn yong
To: Kernel Debugging Interest List
Sent: Monday, February 04, 2002 5:52 AM
Subject: [windbg] How to do kernel debugging with only one pc?

Hello,

I’m writing a USB device driver. I would like to ask if there is anyway that I can do kernel debugging with only one PC?
Thanks.

-marilyn

from,
Marilyn.


Get your FREE download of MSN Explorer at http://explorer.msn.com.

You are currently subscribed to windbg as: xxxxx@21cn.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi marilyn,

You could use SoftIce debugger. It debugs live kernel on same machine.

S.Ravindranadh Chowdary
IBM India Software Labs,
Bangalore, India
Ph : 91-080-5267117/2355 Ext. 2452,
Direct: 5094452

“marilyn yong”
To: “Kernel Debugging Interest List”
Sent by: cc:
xxxxx@lis Subject: [windbg] How to do kernel debugging with only one pc?
ts.osr.com

02/04/2002 11:22 AM
Please respond to
“Kernel Debugging
Interest List”

Hello,

I’m writing a USB device driver. I would like to ask if there is anyway
that I can do kernel debugging with only one PC?
Thanks.

-marilyn

from,
Marilyn.

Get your FREE download of MSN Explorer at http://explorer.msn.com.

You are currently subscribed to windbg as: sravind@in.ibm.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello again,

Thank you Mr. S.Ravindranadh Chowdary for your reply but my company does not intend to buy the software suggested as it is too pricey. 

Someone suggested passing regular messages to the console application. Is that possible? Thanks

marilyn-

From: “Ravindranadh C Sahukara”

>Reply-To: “Kernel Debugging Interest List”
>To: “Kernel Debugging Interest List”
>CC: xxxxx@hotmail.com
>Subject: [windbg] Re: How to do kernel debugging with only one pc?
>Date: Mon, 4 Feb 2002 11:42:20 +0530
>
>
>Hi marilyn,
>
> You could use SoftIce debugger. It debugs live kernel on same machine.
>
>
>S.Ravindranadh Chowdary
>IBM India Software Labs,
>Bangalore, India
>Ph : 91-080-5267117/2355 Ext. 2452,
>Direct: 5094452
>
>
>
>
> “marilyn yong”
> To: “Kernel Debugging Interest List”
> Sent by: cc:
> xxxxx@lis Subject: [windbg] How to do kernel debugging with only one pc?
> ts.osr.com
>
>
> 02/04/2002 11:22 AM
> Please respond to
> “Kernel Debugging
> Interest List”
>
>
>
>
>
>Hello,
>
>
>I’m writing a USB device driver. I would like to ask if there is anyway
>that I can do kernel debugging with only one PC?
>Thanks.
>
>
>-marilyn
>
>
>
>
>
>
>
>
>
>from,
>Marilyn.
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com.
>—
>You are currently subscribed to windbg as: sravind@in.ibm.com
>To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>
>—
>You are currently subscribed to windbg as: xxxxx@hotmail.com
>To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Send and receive Hotmail on your mobile device: Click Here


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)

To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi again,

Thank you Mr. S.Ravindranadh Chowdary for your reply but my company does not intend to buy the software suggested as it is too pricey. 

Someone suggested passing regular messages to the console application. Is that possible? Thanks

marilyn-


Send and receive Hotmail on your mobile device: Click Here


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)

To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

You could get the massages on screen using the “sysmon” free software,
which can be download from sysinernals.com.
I think you can download the SoftIce demo version.

S.Ravindranadh Chowdary
IBM India Software Labs,
Bangalore, India
Ph : 91-080-5267117/2355 Ext. 2452,
Direct: 091-80-5094452

“marilyn yong”
To: “Kernel Debugging Interest List”
Sent by: cc:
xxxxx@lis Subject: [windbg] Re: How to do kernel debugging with only one pc?
ts.osr.com

02/04/2002 12:07 PM
Please respond to
“Kernel Debugging
Interest List”

Hello again,

Thank you Mr. S.Ravindranadh Chowdary for your reply but my company does
not intend to buy the software suggested as it is too pricey.

Someone suggested passing regular messages to the console application. Is
that possible? Thanks

marilyn-

>From: “Ravindranadh C Sahukara”
>Reply-To: “Kernel Debugging Interest List”
>To: “Kernel Debugging Interest List”
>CC: xxxxx@hotmail.com
>Subject: [windbg] Re: How to do kernel debugging with only one pc?
>Date: Mon, 4 Feb 2002 11:42:20 +0530
>
>
>Hi marilyn,
>
> You could use SoftIce debugger. It debugs live kernel on same machine.
>
>
>S.Ravindranadh Chowdary
>IBM India Software Labs,
>Bangalore, India
>Ph : 91-080-5267117/2355 Ext. 2452,
>Direct: 5094452
>
>
>
>
> “marilyn yong”
> To: “Kernel Debugging Interest List”
> Sent by: cc:
> xxxxx@lis Subject: [windbg] How to do kernel debugging with
only one pc?
> ts.osr.com
>
>
> 02/04/2002 11:22 AM
> Please respond to
> “Kernel Debugging
> Interest List”
>
>
>
>
>
>Hello,
>
>
>I’m writing a USB device driver. I would like to ask if there is anyway
>that I can do kernel debugging with only one PC?
>Thanks.
>
>
>-marilyn
>
>
>
>
>
>
>
>
>
>from,
>Marilyn.
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com.
>—
>You are currently subscribed to windbg as: sravind@in.ibm.com
>To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>
>—
>You are currently subscribed to windbg as: xxxxx@hotmail.com
>To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Send and receive Hotmail on your mobile device: Click Here

You are currently subscribed to windbg as: sravind@in.ibm.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

It is possible that you could use a log file to debug, it means
you dump debug imformation into the file like old day.

chen gang

-----Original Message-----
From: marilyn yong [mailto:xxxxx@hotmail.com]
Sent: Monday, February 04, 2002 2:46 PM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Hi again,
Thank you Mr. S.Ravindranadh Chowdary for your reply but my company does not
intend to buy the software suggested as it is too pricey.
Someone suggested passing regular messages to the console application. Is
that possible? Thanks
marilyn-

Send and receive Hotmail on your mobile device: Click Here

You are currently subscribed to windbg as: xxxxx@viatech.com.cn
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello,

marilyn yong wrote:

I’m writing a USB device driver. I would like to ask if
there is anyway that I can do kernel debugging with only one PC?

Despite of using SotICE, as others suggestested, or using the debugging
outputs only, there’s also the possibility to start a virtual PC on
your machine using VMWare, and then using WinDBG. I’ve used this setup
more than once and it works, despite the fact that it is rather slow.
The only hardware that I needed was the cross connect serial cable, because
I was not able to connect virtually with the virtual machine. Anyway, I
have never used this with USB, so I don’t know if there are some problems
I cannot see. But, the good thing: You can get a demo version of VMWare
and try yourself!

HTH,
Spiro.


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

As long as you don’t care about being able to step through code or examine
variables on the fly, there are several packages that hook the debug print
output to a display. Check http://www.osr.com/resources_downloads.shtml

That said, tell us the name of your company because I would prefer to avoid
buying products from a company unwilling to purchase tools necessary to
ensure a quality product. I already have a USB to RS232 converter that blue
screens my system during shutdown, and appears to lose some data.

-Evan Hillman

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of marilyn yong
Sent: Monday, February 04, 2002 6:46 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Hi again,
Thank you Mr. S.Ravindranadh Chowdary for your reply but my company does not
intend to buy the software suggested as it is too pricey.
Someone suggested passing regular messages to the console application. Is
that possible? Thanks
marilyn-


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Buy SoftICE
----- Original Message -----
From: marilyn yong
To: Kernel Debugging Interest List
Sent: Monday, February 04, 2002 6:46 AM
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Hi again,

Thank you Mr. S.Ravindranadh Chowdary for your reply but my company does not intend to buy the software suggested as it is too pricey.

Someone suggested passing regular messages to the console application. Is that possible? Thanks

marilyn-


Send and receive Hotmail on your mobile device: Click Here

You are currently subscribed to windbg as: xxxxx@attbi.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You can probably buy a second PC for less money than you’d spend on Softice,
and then you could use WinDbg. Personally, I think it’s foolish to develop
and debug device drivers on the same machine, but that’s just my personal
preference.

Bill Christie, Software Engineer
Link Engineering Company
43855 Plymouth Oaks Blvd.
Plymouth, MI 48170
www.linkeng.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Evan Hillman
Sent: Monday, February 04, 2002 9:58 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

As long as you don’t care about being able to step through
code or examine
variables on the fly, there are several packages that hook
the debug print
output to a display. Check
http://www.osr.com/resources_downloads.shtml

That said, tell us the name of your company because I would
prefer to avoid
buying products from a company unwilling to purchase tools
necessary to
ensure a quality product. I already have a USB to RS232
converter that blue
screens my system during shutdown, and appears to lose some data.

-Evan Hillman

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of marilyn yong
Sent: Monday, February 04, 2002 6:46 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Hi again,
Thank you Mr. S.Ravindranadh Chowdary for your reply but my
company does not
intend to buy the software suggested as it is too pricey.
Someone suggested passing regular messages to the console
application. Is
that possible? Thanks
marilyn-


You are currently subscribed to windbg as: xxxxx@linkeng.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Oh my … at $600 a pop from DELL, you can almost buy 2 machines for what
one SoftIce license costs.

Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Bill Christie [mailto:xxxxx@linkeng.com]
Sent: Monday, February 04, 2002 8:12 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

You can probably buy a second PC for less money than you’d spend on Softice,
and then you could use WinDbg. Personally, I think it’s foolish to develop
and debug device drivers on the same machine, but that’s just my personal
preference.

Bill Christie, Software Engineer
Link Engineering Company
43855 Plymouth Oaks Blvd.
Plymouth, MI 48170
www.linkeng.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Evan Hillman
Sent: Monday, February 04, 2002 9:58 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

As long as you don’t care about being able to step through
code or examine
variables on the fly, there are several packages that hook
the debug print
output to a display. Check
http://www.osr.com/resources_downloads.shtml

That said, tell us the name of your company because I would
prefer to avoid
buying products from a company unwilling to purchase tools
necessary to
ensure a quality product. I already have a USB to RS232
converter that blue
screens my system during shutdown, and appears to lose some data.

-Evan Hillman

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of marilyn yong
Sent: Monday, February 04, 2002 6:46 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Hi again,
Thank you Mr. S.Ravindranadh Chowdary for your reply but my
company does not
intend to buy the software suggested as it is too pricey.
Someone suggested passing regular messages to the console
application. Is
that possible? Thanks
marilyn-


You are currently subscribed to windbg as: xxxxx@linkeng.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Easiest way:

There is a utility called ‘debugview’ that lets you see the debug output on
the console on the local PC. It’s downloadable, I believe. I think it might
have also come with Walter Oney’s Essential WDM Driver book (since it’s
basically the only one!) as well. See if it’s on Sysinternals.com?

Ugly Way:

The other thing you can do is (like we used to have to) roll your own
kernel debugger or at least most of what you need it for, at the
expense of lots of time.

Create a kernel driver that you can read/write data to that
has some means of storing data. (IOCTL interface)

Make a .dll that lets you call functions that write into the
memory set up by this kernel debug driver. Then make a user
app that lets you read/write to this driver, getting data.

Basically re-writing your own version of soft-ice, only one
that’s easier to write because you’re using the debug statements
manually and not trying to hook the OS. In your driver you
could thus write to this space.

Soft-Ice:

It’s a matter of the cost of your time vs. the cost of
something like soft-ice, which is pricey but not unreasonable
given the work that went into it.

If you can get soft-ice to work that is! I have it and
have run into regular blocking points where it doesn’t
work on a given target machine, and basically
decided that for now the time spent trying to get it to
work was more expensive than carrying around two machines
to do development/debugging on with WinDBG (current project).
I’m also a bit more practiced with WinDBG than soft-ice lately.

There were times it failed that I really wanted it to
work. There have been times when it’s been great and
solved problems that were much more difficult with WinDBG.


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I do hate to say this, but by the time you waste all that time doing that,
either purchasing SoftIce or a target system would have been far cheaper.
Either WinDbg or softIce will increase your efficiency in finding and fixing
problems. You spend far more time trying to figure out where to put the god
damn printf statement than you do setting a breakpoint some where. Then you
have to unwind all those printfs. Get a debugger. It’s cheaper.

Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net

-----Original Message-----
From: xxxxx@starband.net [mailto:xxxxx@starband.net]
Sent: Monday, February 04, 2002 9:45 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Easiest way:

There is a utility called ‘debugview’ that lets you see the debug output on
the console on the local PC. It’s downloadable, I believe. I think it might
have also come with Walter Oney’s Essential WDM Driver book (since it’s
basically the only one!) as well. See if it’s on Sysinternals.com?

Ugly Way:

The other thing you can do is (like we used to have to) roll your own
kernel debugger or at least most of what you need it for, at the
expense of lots of time.

Create a kernel driver that you can read/write data to that
has some means of storing data. (IOCTL interface)

Make a .dll that lets you call functions that write into the
memory set up by this kernel debug driver. Then make a user
app that lets you read/write to this driver, getting data.

Basically re-writing your own version of soft-ice, only one
that’s easier to write because you’re using the debug statements
manually and not trying to hook the OS. In your driver you
could thus write to this space.

Soft-Ice:

It’s a matter of the cost of your time vs. the cost of
something like soft-ice, which is pricey but not unreasonable
given the work that went into it.

If you can get soft-ice to work that is! I have it and
have run into regular blocking points where it doesn’t
work on a given target machine, and basically
decided that for now the time spent trying to get it to
work was more expensive than carrying around two machines
to do development/debugging on with WinDBG (current project).
I’m also a bit more practiced with WinDBG than soft-ice lately.

There were times it failed that I really wanted it to
work. There have been times when it’s been great and
solved problems that were much more difficult with WinDBG.


You are currently subscribed to windbg as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Why would one do the ugly way rather than use LiveKD from the Inside
Windows 2000 book or use LocalKD with Windbg on WinXP?

For anyone unfamilar with these they are “local machine debugging”
things that basicly allow you to read/write memory, run some extensions
and such. Things like stacktrace, breakpoints and debug output don’t
work with them. Kind of a cross between a dump file and a live machine.

-----Original Message-----
From: xxxxx@starband.net [mailto:xxxxx@starband.net]
Sent: Monday, February 04, 2002 9:45 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re:How to do kernel debugging with only one PC?

Easiest way:

There is a utility called ‘debugview’ that lets you see the debug output
on
the console on the local PC. It’s downloadable, I believe. I think it
might
have also come with Walter Oney’s Essential WDM Driver book (since it’s
basically the only one!) as well. See if it’s on Sysinternals.com?

Ugly Way:

The other thing you can do is (like we used to have to) roll your own
kernel debugger or at least most of what you need it for, at the expense
of lots of time.

Create a kernel driver that you can read/write data to that
has some means of storing data. (IOCTL interface)

Make a .dll that lets you call functions that write into the memory set
up by this kernel debug driver. Then make a user app that lets you
read/write to this driver, getting data.

Basically re-writing your own version of soft-ice, only one that’s
easier to write because you’re using the debug statements manually and
not trying to hook the OS. In your driver you could thus write to this
space.

Soft-Ice:

It’s a matter of the cost of your time vs. the cost of something like
soft-ice, which is pricey but not unreasonable given the work that went
into it.

If you can get soft-ice to work that is! I have it and
have run into regular blocking points where it doesn’t
work on a given target machine, and basically
decided that for now the time spent trying to get it to
work was more expensive than carrying around two machines
to do development/debugging on with WinDBG (current project).
I’m also a bit more practiced with WinDBG than soft-ice lately.

There were times it failed that I really wanted it to
work. There have been times when it’s been great and
solved problems that were much more difficult with WinDBG.


You are currently subscribed to windbg as: xxxxx@microsoft.com To
unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com