0

I am running debugView under VS2010 on Win 7 64bit. I have a c# app that calls a c dll. I have some fprintf(stderr) statements in my C dll, and some Console.Error writeLine statements in my c# code, but none of them show up in DebugView. In my VS2010 I tried writing the output to the Output window, and then tried the Immediate window, and still nothing shows.

Am I doing something wrong? Is there something about c# and a dll that precludes output?

PaeneInsula
  • 2,010
  • 3
  • 31
  • 57

2 Answers2

1

It's a known problem: http://bembengarifin.wordpress.com/2011/01/20/debugtrace-output-is-not-being-captured-by-debugview-when-vs2010-in-debug-mode/

The solution is to write your own...not a very appealing proposition!

PaeneInsula
  • 2,010
  • 3
  • 31
  • 57
0

Do you have Capture Win32 and Capture Global Win32 selected in the Capture menu?

Do Trace.WriteLine() C# statements output to debugview?

Spikeh
  • 3,540
  • 4
  • 24
  • 49
  • Yes CaptureWin32 selected, but not Global. I can't set Global on because "access is denied" – PaeneInsula Jul 28 '12 at 20:30
  • You get an "access is denied" error when you try to turn on Global in DebugView? Are you logged in as a local administrator? – Spikeh Jul 28 '12 at 20:48
  • No, but I have admin privileges. – PaeneInsula Jul 28 '12 at 20:52
  • It sounds like you have an issue with access rights in general. Are you on a corporate network, or is it your local machine? If you're on a network, speak to your administrator... as I originally asked, does Trace.WriteLine() output to DebugView? – Spikeh Jul 28 '12 at 21:01
  • I re-ran program explicitly with admin privileges, and no diff. I should add that I'm getting lots of System output; just nothing from my c# or DLL code – PaeneInsula Jul 28 '12 at 21:03
  • Trade.WriteLine("mesg") does not output to DebugView either. – PaeneInsula Jul 28 '12 at 21:07
  • Create a simple console app and put some System.Diagnostics.Trace.WriteLine() statements in it, just to check that it's nothing to do with your application. If they don't come out in DebugView, check your advanced permissions, event log and .Net logs. I can't really suggest any more than that, sorry! – Spikeh Jul 28 '12 at 21:07
  • I'm connected via Remote Desktop to a computer that is 10 feet away, but doing things directly (ie, without RDP) still no diff – PaeneInsula Jul 28 '12 at 21:09
  • This might help: http://stackoverflow.com/questions/4429254/how-to-make-debugview-work-under-net-4 and http://bembengarifin.wordpress.com/2011/01/20/debugtrace-output-is-not-being-captured-by-debugview-when-vs2010-in-debug-mode/ – Colin Smith Jul 28 '12 at 23:33