473,395 Members | 1,341 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,395 software developers and data experts.

Console.Writeline

Hello,

Where can I see the output of console.writeline(MyVar) in VS 2005?

And do I need to debug or just run it?

Is there any other way to check the a variable value?

Thanks,

Miguel

Sep 21 '07 #1
4 2616
If you are not in a console project, you'll see your console.writeline
statements in the debug Output window.

If you are in a Windows application, you can just create a temporary
messgagebox.show statement to print your value on the screen.

Or, you could just set a breakpoint and check the various debugging
windows/intelliSense features to see your value.
"shapper" <md*****@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
Hello,

Where can I see the output of console.writeline(MyVar) in VS 2005?

And do I need to debug or just run it?

Is there any other way to check the a variable value?

Thanks,

Miguel

Sep 21 '07 #2
to showup in the vs debugger console just:

System.Diagnostics.Debug.Write("some text");

also see the Trace class.

-- bruce (sqlwork.com)
shapper wrote:
Hello,

Where can I see the output of console.writeline(MyVar) in VS 2005?

And do I need to debug or just run it?

Is there any other way to check the a variable value?

Thanks,

Miguel
Sep 21 '07 #3
Ive never had to use trace or debug in an asp.net application. I think if
you write you code robustly, you can usually do without it.
"bruce barker" <no****@nospam.comwrote in message
news:ub*************@TK2MSFTNGP06.phx.gbl...
to showup in the vs debugger console just:

System.Diagnostics.Debug.Write("some text");

also see the Trace class.

-- bruce (sqlwork.com)
shapper wrote:
>Hello,

Where can I see the output of console.writeline(MyVar) in VS 2005?

And do I need to debug or just run it?

Is there any other way to check the a variable value?

Thanks,

Miguel

Sep 22 '07 #4
The trace class is extremely usefull in ASP .NET. If you haven't heard of
using in ASP .NET, I'd say that you haven't read much about debugging ASP
..NET.
"Just Me" <news.microsoft.comwrote in message
news:ur**************@TK2MSFTNGP05.phx.gbl...
Ive never had to use trace or debug in an asp.net application. I think if
you write you code robustly, you can usually do without it.
"bruce barker" <no****@nospam.comwrote in message
news:ub*************@TK2MSFTNGP06.phx.gbl...
>to showup in the vs debugger console just:

System.Diagnostics.Debug.Write("some text");

also see the Trace class.

-- bruce (sqlwork.com)
shapper wrote:
>>Hello,

Where can I see the output of console.writeline(MyVar) in VS 2005?

And do I need to debug or just run it?

Is there any other way to check the a variable value?

Thanks,

Miguel


Sep 22 '07 #5

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

Similar topics

4
by: jabailo | last post by:
This is driving me crazy. I finally got the Remoting sample chat application working almost. When I run the chat client in VS.NET it goes into an endless loop -- that's because I assume that...
1
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
7
by: shawnk | last post by:
Hello Everyone How do you format format numbers right-justified using Console.WriteLine(), i.e I need to line up numbers in vertical columns and the MSDN documentation is pretty poor Here is the...
5
by: Publicjoe | last post by:
I am working on a little app which uses colour in the console window. I have created a class to extend the console functionality but the ClearScreen method does not work correctly. I am enclosing a...
17
by: MumboJumbo | last post by:
Hi I have a really basic question hopefully some can help me with: Can you write a (i.e. one) C# project that works from the cmd line and gui? I seems if i write a GUI app it can't write to...
5
by: portroe | last post by:
Hi I am using console.Writeline in my simple program. I do not however see anything happening in the output window when I debug, there are also no error messages, Has anybody a tip on what...
4
by: Bob | last post by:
I just recently noticed that when I start my applicatoin in debug mode, the IDE hangs (no disk or CPU activity) indefinitely (at least 20 minutes). Pausing the application shows that it's hung up...
2
by: djc | last post by:
out of all the overloads that pop up via intellisense for console.writeline() the following one confuses me: Console.WriteLine (string format, params object arg) 1) whats the deal with...
1
by: John Wright | last post by:
I am running a console application that connects to an Access database (8 million rows) and converts it to a text file and then cleans and compacts the database. When it runs I get the following...
0
by: Stephen Thomas | last post by:
Hi there I wonder if any one has encountered this problem or can suggest what is wrong. I am trying the a procedure from the msn site but get the following message: Error 1 The type or...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.