Yes, you can build conditional breakpoints using the “j” (Execute if-else)
command. See the Windbg help on Breakpoints for some examples.
Marybeth Croci
-----Original Message-----
From: Moreira, Alberto [mailto:xxxxx@compuware.com]
Sent: Wednesday, July 02, 2003 3:53 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Something like OutputDebugString
I’m talking out of ignorance, but does Windbg have conditional breakpoints ?
If I wanted to do that kind of thing with SoftICE, one way would be to have
the debugger and the app to break on the same condition.
Alberto.
-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Wednesday, July 02, 2003 3:31 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Something like OutputDebugString
Timestamps don’t provide exact correlation but they do provide loose
correlation, which in my experience is generally good enough, if somewhat
painful to collate.
=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com
-----Original Message-----
From: Ralph Shnelvar [mailto:xxxxx@dos32.com]
Sent: Wednesday, July 02, 2003 3:21 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Something like OutputDebugString
Dear Mark:
On Wed, 2 Jul 2003 13:42:09 -0400 , you wrote:
OutputDebugString works if you don’t have an active application
debugger. In that case if there is an active kernel debugger the output
will appear on the debugger console. If you have an active application
debugger you are out of luck. Try using timestamps to correlate
activity.
I thought about that but it really doesn’t solve the problem, does it?
Anyway, it sure looks like I’m going to have to home brew some stuff.
Amazing how hard simple things are to do in this environment.
Mark, thanks for your help and definitive answer.
Ralph
=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com
-----Original Message-----
From: Ralph Shnelvar [mailto:xxxxx@dos32.com]
Sent: Wednesday, July 02, 2003 1:31 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Something like OutputDebugString
Dear Mat:
>From http://www.osr.com/ddk/ddtools/debugfns_9ecz.htm:
Only kernel-mode drivers can call the DbgPrint routine.
I find no other documentation for DbgPrint. I can’t find any SDK-level
headers that seem to declare DbgPrint in any way that I can link with.
What am I missing?
Ralph
On Wed, 2 Jul 2003 12:25:51 -0400 , you wrote:
>DbgPrint()
>
>Enjoy! 
>Mat
>
>-----Original Message-----
>From: Ralph Shnelvar [mailto:xxxxx@dos32.com]
>Sent: Wednesday, July 02, 2003 12:17 PM
>To: NT Developers Interest List
>Subject: [ntdev] Something like OutputDebugString
>
>I feel so embarrassed but I’ve been looking and looking and can’t find
>the answer to what should be an easy question.
>
>I’m looking for something like OutputDebugString and/or KdPrint for
>user mode.
>
>That is, I want my user mode application to be able to do the
>equivalent of a KdPrint so that I can see some output on the WinDbg
>command window. As you probably know, OutputDebugString will send
>debugging output to the application debugger rather than the kernel
>mode debugger.
>
>As you’ve probably guessed, I’m running both the VC++ IDE and WinDbg
>in
>order to debug a rather complex system.
>
>
>I’ve toyed with sending an IOCTL to my own driver in order to simulate
>this but is there a better way?
>
>Ralph
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@guillemot.com To
>unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@dos32.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@dos32.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com