user2814916
user2814916

Reputation: 83

System.Diagnostics.Debug.WriteLine giving no output in Visual Studio 2015 even though settings set to display

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!

Upvotes: 1

Views: 1475

Answers (2)

Serge V.
Serge V.

Reputation: 3623

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

F5 Starting Debugging

ctrl+F5 Starting Without Debugging

enter image description here

Upvotes: 1

drone
drone

Reputation: 53

  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#

Upvotes: 0

Related Questions