Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I read the Console output in Visual Studio 2015

I am new to C# and downloaded the free version of Microsoft Visual Studio 2015. To write a first program, I created a Windows Forms Application. Now I use Console.Out.WriteLine() to print some test data. But where can I read the console?

like image 723
Garrarufa Avatar asked Nov 12 '15 11:11

Garrarufa


People also ask

How can I see the Output of a console application in Visual Studio?

Press F11 . Visual Studio calls the Console. WriteLine(String, Object, Object) method. The console window displays the formatted string.

How do I view Output in Visual Studio?

The Output window displays status messages for various features in the integrated development environment (IDE). To open the Output window, on the menu bar, choose View > Output, or press Ctrl+Alt+O.

How do I open the console in Visual Studio 2015?

In ASP.NET 5 we can create console applications. To create a new console application we first open Visual Studio 2015. Create it using File-> New-> Project. Now we will select the ASP.NET 5 Console Application because we will create the console application and click on the OK button.


1 Answers

The simple way is using System.Diagnostics.Debug.WriteLine()

Your can then read what you're writing to the output by clicking the menu "DEBUG" -> "Windows" -> "Output".

like image 72
owairc Avatar answered Oct 04 '22 15:10

owairc