Debug.WriteLine
-
Ok, I have just about had enough... Two systems, one laptop one desktop. Built the same small test app on each one. Just a button that when clicked writes the following:
Debug.WriteLine("Test");
The laptop writes the 'Test' out tothe debug window just fine... the desktop doe snot. Ready to really throw a fit here... Any ideas before I toss things out the window? Aaaaaaaaaaaaaaaaaaa
-
Ok, I have just about had enough... Two systems, one laptop one desktop. Built the same small test app on each one. Just a button that when clicked writes the following:
Debug.WriteLine("Test");
The laptop writes the 'Test' out tothe debug window just fine... the desktop doe snot. Ready to really throw a fit here... Any ideas before I toss things out the window? Aaaaaaaaaaaaaaaaaaa
Hi Ray, with the risk to state the obvious: the Debug class only works in a debug build. Check your "Configuration Manager". And check your project properties: in the Build pane, there may be a checkbox "define DEBUG constant" which should be checked. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
Hi Ray, with the risk to state the obvious: the Debug class only works in a debug build. Check your "Configuration Manager". And check your project properties: in the Build pane, there may be a checkbox "define DEBUG constant" which should be checked. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
You could replace
Debug.WriteLine
byConsole.WriteLine
just to test the statement is reached... :)Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
You could replace
Debug.WriteLine
byConsole.WriteLine
just to test the statement is reached... :)Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
Congrats Ray...
-
Ok, I have just about had enough... Two systems, one laptop one desktop. Built the same small test app on each one. Just a button that when clicked writes the following:
Debug.WriteLine("Test");
The laptop writes the 'Test' out tothe debug window just fine... the desktop doe snot. Ready to really throw a fit here... Any ideas before I toss things out the window? Aaaaaaaaaaaaaaaaaaa
Make sure the
DefaultTracerListener
is set to the debug window on the desktop as well as the laptop. See http://msdn.microsoft.com/en-us/library/system.diagnostics.defaulttracelistener.aspx[^] - this kind of explains it.The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick