tags:

views:

93

answers:

1

I have just noticed that when i call the following code from a console app

for (int i = 0; i < 10; i++)
{
  Trace.WriteLine("Logging");
  Debug.WriteLine("Logging Debug");
}

if I am targeting .net 4.0 no messages appear in the debugview app although I am capturing all outputs.

If I change to target 3.5 it appears fine.

What's changed and how can I fix it?

A: 

Are you doing this on the same machine?

It could be that the debug viewer (assumed DbgView from Sysinternals) is not connected. Check the title of the debug viewer for the name of the machine you're connected to.

Bernhard Hofmann
I have debugview loaded at the time when i am switching between 4 and 3.5 and its appearing for 3.5
Kev Hunter