473,396 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Where does "Console.WriteLine" output go?

I''ve created a simple Console Application in C#.NET (.NET 2.0), and I
have the following code:

Console.WriteLine("Now let us begin!");

However, the string, "Now let us begin!", never shows up in the "View"-
>"Output" window when I execute the code.
FYI, the text in the "View"->"Output" window is below instead:

'IO.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL
\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.d ll', Skipped loading
symbols. Module is optimized and the debugger option 'Just My Code' is
enabled.
The thread 0x16b0 has exited with code 0 (0x0).
The thread 0x1304 has exited with code 0 (0x0).
'IO.vshost.exe' (Managed): Loaded 'C:\Trading\IO\IO\bin\Debug\IO.exe',
Symbols loaded.
The thread 0x1180 has exited with code 0 (0x0).
The thread 0xb0c has exited with code 0 (0x0).
The program '[2768] IO.vshost.exe: Managed' has exited with code 0
(0x0).

Anyone can advise me on how to get the text show in the output? Thanks!
Aug 27 '08 #1
3 6435

"Curious" <fi********@yahoo.comwrote in message
news:13**********************************@79g2000h sk.googlegroups.com...
I''ve created a simple Console Application in C#.NET (.NET 2.0), and I
have the following code:

Console.WriteLine("Now let us begin!");

However, the string, "Now let us begin!", never shows up in the "View"-
>>"Output" window when I execute the code.

FYI, the text in the "View"->"Output" window is below instead:

'IO.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL
\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.d ll', Skipped loading
symbols. Module is optimized and the debugger option 'Just My Code' is
enabled.
The thread 0x16b0 has exited with code 0 (0x0).
The thread 0x1304 has exited with code 0 (0x0).
'IO.vshost.exe' (Managed): Loaded 'C:\Trading\IO\IO\bin\Debug\IO.exe',
Symbols loaded.
The thread 0x1180 has exited with code 0 (0x0).
The thread 0xb0c has exited with code 0 (0x0).
The program '[2768] IO.vshost.exe: Managed' has exited with code 0
(0x0).

Anyone can advise me on how to get the text show in the output? Thanks!
The output does not appear in the command prompt window opened by the
console application? That's where you should see it. If the command window
is disappearing immediately, run your app using "Start Without Debugging"
from the Debug menu. It won't show in the IDE Output window.

Aug 27 '08 #2
The output does not appear in the command prompt window opened by the
console application? *That's where you should see it. If the command window
is disappearing immediately, run your app using "Start Without Debugging"
from the Debug menu. It won't show in the IDE Output window.- Hide quotedtext -
Thanks for the advice!

It does show in a separate black Command window. I was looking for the
output at the wrong place in Visual Studio.

Aug 27 '08 #3
Curious,

Use

Console.ReadLine();

At the end.

Cor

"Curious" <fi********@yahoo.comschreef in bericht
news:13**********************************@79g2000h sk.googlegroups.com...
I''ve created a simple Console Application in C#.NET (.NET 2.0), and I
have the following code:

Console.WriteLine("Now let us begin!");

However, the string, "Now let us begin!", never shows up in the "View"-
>>"Output" window when I execute the code.

FYI, the text in the "View"->"Output" window is below instead:

'IO.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL
\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.d ll', Skipped loading
symbols. Module is optimized and the debugger option 'Just My Code' is
enabled.
The thread 0x16b0 has exited with code 0 (0x0).
The thread 0x1304 has exited with code 0 (0x0).
'IO.vshost.exe' (Managed): Loaded 'C:\Trading\IO\IO\bin\Debug\IO.exe',
Symbols loaded.
The thread 0x1180 has exited with code 0 (0x0).
The thread 0xb0c has exited with code 0 (0x0).
The program '[2768] IO.vshost.exe: Managed' has exited with code 0
(0x0).

Anyone can advise me on how to get the text show in the output? Thanks!
Aug 30 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Byrom, R (Rob) | last post by:
hi, I'd like to be able to trap console output as the user writes interactively. For example if the user press the up or down keys I'd like to be able to catch this and return the last executed...
1
by: Dan Williams | last post by:
Does anyone know if its possible to pause the console output if my console app tries to write data past the current command prompt buffer? In other words, behave much like the 'more' command, in...
8
by: AMeador | last post by:
I can see console output in the output window on VS, but how can you see this text when running the app on a different machine or outside of VS? Thanks! --- Andrew
5
by: Markus S. | last post by:
Hello, I have a problem with a DOS EXE that is called by a .Net Winforms application. I need to redirect the console output into a textbox, but this should happen in real time, so when new...
2
by: John | last post by:
Hi I need a console output system which needs to display information line by line and scroll once the designated viewable area is filled. User is still able to scroll back to the last x lines to...
0
by: Helge Lenuweit | last post by:
Hello, I am trying to put together an application that (1) shows Console.WriteLine() output when launched from within a console window (that is, from the command prompt) but that (2) **does not...
4
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; When my ASP.NET app is running on IIS, where does the Console.Out.WriteLine("hi there"); output go? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com
3
by: TC | last post by:
I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the...
27
by: CarlosMB | last post by:
Hello, I am writing code that uses a DLL which is supposed to print to console some useful information but for some reason it is not doing so. The environment is a bit complex to explain but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.