Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OutputDebugString output NOT\ Showing in DebugView

3,824 views
Skip to first unread message

developer28

unread,
Sep 15, 2011, 5:42:56 AM9/15/11
to
Hi,

I am running Windows 7 x86.

The OutputDebugString output in my program does not show in DebugView.
Windbg is not attached.

When i attached Windbg to the program, i am able to see the debug
statements in the debugger which is strange.

But Debugview would never show that same output when debugger is not
attached.

Already tried running DebugView at low integrity level as suggested
somewhere else on the internet. Did not work.

Please advise.

Regards,
Aman

Leo Davidson

unread,
Sep 15, 2011, 8:34:10 AM9/15/11
to
On Sep 15, 10:42 am, developer28 <aman.k.se...@gmail.com> wrote:

> Already tried running DebugView at low integrity level as suggested
> somewhere else on the internet. Did not work.

Did you try running it as administrator (high integrity) as well?

From my rusty memory, I think it has to match the integrity of what
you are monitoring.

Also check that the things turned on in DebugView's Capture menu are
appropriate to what you want to capture, and that it is not set to
filter anything out (Ctrl-L, Reset to ensure that).

Aman Sethi

unread,
Sep 15, 2011, 8:41:21 AM9/15/11
to
Hi Leo,

Thanks for your reply.
I am running everything as an admin. UAC is turned off too.

Debugview is not running with high integrity since, by default
everything is assigned a medium integrity level. Which means that
Debugview as well as the source are running at medium integrity both.
Hence the integrity level matches. Confirmed this with the icacls
utility.

And no filters are enabled. There is a "*" wildcard under the include
section under the filter. That is all.

Anything else that might work? And any reason why the output shows
correctly when Windbg is attached?

Regards,
Aman

Aman Sethi

unread,
Sep 15, 2011, 9:15:28 AM9/15/11
to
Important. FYI, Also, interestingly, when I write a fresh program
which does nothing but just a single OutputDebugString, DebugView
captures it successfully.

Regards,
Aman

Deanna Earley

unread,
Sep 15, 2011, 9:27:06 AM9/15/11
to
Have you put a "\r\n" on the end of the string?
If not, do so, or enable the "force carriage returns" in DebugView.

--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)

Aman Sethi

unread,
Sep 15, 2011, 9:53:02 AM9/15/11
to
On Sep 15, 6:27 pm, Deanna Earley <dee.ear...@icode.co.uk> wrote:
> On 15/09/2011 10:42, developer28 wrote:
>
> > Hi,
>
> > I am running Windows 7 x86.
>
> > The OutputDebugString output in my program does not show in DebugView.
> > Windbg is not attached.
>
> > When i attached Windbg to the program, i am able to see the debug
> > statements in the debugger which is strange.
>
> > But Debugview would never show that same output when debugger is not
> > attached.
>
> > Already tried running DebugView at low integrity level as suggested
> > somewhere else on the internet. Did not work.
>
> Have you put a "\r\n" on the end of the string?
> If not, do so, or enable the "force carriage returns" in DebugView.
>
> --
> Dee Earley (dee.ear...@icode.co.uk)
> i-Catcher Development Teamhttp://www.icode.co.uk/icatcher/
>
> iCode Systems
>
> (Replies direct to my email address will be ignored.
> Please reply to the group.)

Hi Dee,

I did not put a carriage return in the code.
But i enabled it inside DebugView by choosing "Force carriage
returns".
Doesn't help in showing the output though.

Regards,
Aman
0 new messages