Q: How to use DbgPrint in NT Native applications?

Hi,

I’m debugging NT Native application (running it with NRUN.EXE by Andrey
Shedel). Works fine. One problem: DbgPrint (that is exported by ntdll.dll
and is supposed to work) does not produce debug output. Any ideas why this
happen?

Thanks for help!

Anton Kolomyeytsev

What exactly does mean “does not produce debug output”? Long time ago I used
native DbgPrint but found that debug monitors as DbgView aren’t able to trap
its output. Only SoftICE was able to trap it; windbg should be able, too
(haven’t tried).

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@cooldev.com[SMTP:xxxxx@cooldev.com]
Reply To: xxxxx@lists.osr.com
Sent: Thursday, September 26, 2002 9:39 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Q: How to use DbgPrint in NT Native applications?

Hi,

I’m debugging NT Native application (running it with NRUN.EXE by Andrey
Shedel). Works fine. One problem: DbgPrint (that is exported by ntdll.dll
and is supposed to work) does not produce debug output. Any ideas why this
happen?

Thanks for help!

Anton Kolomyeytsev


You are currently subscribed to ntdev as: michal.vodicka@st.com
To unsubscribe send a blank email to %%email.unsub%%

Michal,

that’s exactly what happened! DebugView does not catch output from native
DbgPrint. SoftICE does (2Andrey Shedel: sorry for goofing you SoftICE
works).

Thanks for help!

Anton

Anton,

try OSR DebugMon, maybe it will work. If I remember correctly, it traps
debug output another way (int 2D) and user mode DbgPrint could work. Or you
can send a mail to Mark Russinovich and ask him to improve DebugView. BTW,
he is quite clear that only kernel mode DbgPrint can be used.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@cooldev.com[SMTP:xxxxx@cooldev.com]
Reply To: xxxxx@lists.osr.com
Sent: Friday, September 27, 2002 12:01 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] RE: Q: How to use DbgPrint in NT Native
applications?

Michal,

that’s exactly what happened! DebugView does not catch output from native
DbgPrint. SoftICE does (2Andrey Shedel: sorry for goofing you SoftICE
works).

Thanks for help!

Anton


You are currently subscribed to ntdev as: michal.vodicka@st.com
To unsubscribe send a blank email to %%email.unsub%%