1

As the title suggests, I'm getting no outup in VS2015 from a line such as :

System.Diagnostics.Debug.WriteLine("***************************************Terst output");

I've checked my Output window is set to display this (debug category).

I've had a many a google. Is there any obvious setting I may be missing? Thanks in advance for your input!

  • Are you in release or debug mode? https://msdn.microsoft.com/en-us/library/system.diagnostics.debug(v=vs.110).aspx – kevintjuh93 Sep 14 '15 at 06:49

2 Answers2

1

Make sure you press F5 to Start Debugging mode (not ctrl+F5).

F5 Starting Debugging

ctrl+F5 Starting Without Debugging

enter image description here

Nissa
  • 4,636
  • 8
  • 29
  • 37
Serge V.
  • 3,377
  • 3
  • 20
  • 28
0
  1. Ensure you have added the correct references. (Add references -> System, System.dll).
  2. Check release config (make sure build type is Debug).
  3. Ensure you are not building a Portable Class Libraries or ".NET for Metro style apps".

See related answers:

Missing reference

Why does System.Diagnostics.Debug.WriteLine not work in VS2010 C#

Community
  • 1
  • 1
drone
  • 53
  • 7