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

where does Console.WriteLine() goto?

In j2ee/JBuilder/WebLogic when you do a System.err.println(), you can see
the messages in the console that started the server. When I tried the same
type of thing with VS 2k3 .NET and ASPX, I don't see the messages. Where do
they go? What is the suggest logging method to use for debugging and for
development apps?

I broke out the question into two parts cause I'm looking to find out how to
do quick'n'dirty debugging on the fly vs something a bit more formal and
dependable.

Thanks.
Nov 18 '05 #1
6 1661
Debug.Write() and/or Trace.Write()

--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/
"Flip" <[remove]ph******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
In j2ee/JBuilder/WebLogic when you do a System.err.println(), you can see
the messages in the console that started the server. When I tried the
same
type of thing with VS 2k3 .NET and ASPX, I don't see the messages. Where
do
they go? What is the suggest logging method to use for debugging and for
development apps?

I broke out the question into two parts cause I'm looking to find out how
to
do quick'n'dirty debugging on the fly vs something a bit more formal and
dependable.

Thanks.

Nov 18 '05 #2
Console.Write line writes to the TextWriter assigned to
the Console.Out property. You can use Console.SetOut to
change this.

The recommended logging method is to use
System.Diagnostics.Debug class for debug messages and
System.Diagnostics.Trace class for general tracing
messages.

The easiest way to see trace messages in an ASP.NET
application is to either set Trace="true" in the Page
directive in your ASPX page to have trace messages
included at the end of the page or configure the trace
element in the system.web section of the web.config file.
Like this:
<trace enabled="true" requestLimit="10"
pageOutput="false" traceMode="SortByTime"
localOnly="true" />

You can see trace messages for the entire application in
by navigating to trace.axd on the root of the application.

Anders Norås - blog:
http://dotnetjunkies.com/weblog/anoras/
-----Original Message-----
In j2ee/JBuilder/WebLogic when you do a System.err.println(), you can seethe messages in the console that started the server. When I tried the sametype of thing with VS 2k3 .NET and ASPX, I don't see the messages. Where dothey go? What is the suggest logging method to use for debugging and fordevelopment apps?

I broke out the question into two parts cause I'm looking to find out how todo quick'n'dirty debugging on the fly vs something a bit more formal anddependable.

Thanks.
.

Nov 18 '05 #3
Wondering if you ever tried them in ASP.NET.

Eliyahu

"Daniel Fisher(lennybacon)" <info@(removethis)lennybacon.com> wrote in
message news:OK*************@TK2MSFTNGP14.phx.gbl...
Debug.Write() and/or Trace.Write()

--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/
"Flip" <[remove]ph******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
In j2ee/JBuilder/WebLogic when you do a System.err.println(), you can see the messages in the console that started the server. When I tried the
same
type of thing with VS 2k3 .NET and ASPX, I don't see the messages. Where do
they go? What is the suggest logging method to use for debugging and for development apps?

I broke out the question into two parts cause I'm looking to find out how to
do quick'n'dirty debugging on the fly vs something a bit more formal and dependable.

Thanks.


Nov 18 '05 #4
AHHH! Cool! Thank you for the information and the quick reply! :> I'll
check this out when I get to that machine tonight! :> Thank you.
Nov 18 '05 #5
>>You can see trace messages for the entire application in
by navigating to trace.axd on the root of the application.

But you must have your application running when you attempt to do so as
trace.axd is a virtual file and does not actually exist on the hard drive.
-----Original Message-----
In j2ee/JBuilder/WebLogic when you do a System.err.println(), you can seethe messages in the console that started the server. When I tried the sametype of thing with VS 2k3 .NET and ASPX, I don't see the messages. Where dothey go? What is the suggest logging method to use for debugging and fordevelopment apps?

I broke out the question into two parts cause I'm looking to find out how todo quick'n'dirty debugging on the fly vs something a bit more formal anddependable.

Thanks.
.

Nov 18 '05 #6
Or just use realtime debugging in VS.NET

Jeff
"Anders Norås" <an**********@objectware.no> wrote in message
news:69****************************@phx.gbl...
Console.Write line writes to the TextWriter assigned to
the Console.Out property. You can use Console.SetOut to
change this.

The recommended logging method is to use
System.Diagnostics.Debug class for debug messages and
System.Diagnostics.Trace class for general tracing
messages.

The easiest way to see trace messages in an ASP.NET
application is to either set Trace="true" in the Page
directive in your ASPX page to have trace messages
included at the end of the page or configure the trace
element in the system.web section of the web.config file.
Like this:
<trace enabled="true" requestLimit="10"
pageOutput="false" traceMode="SortByTime"
localOnly="true" />

You can see trace messages for the entire application in
by navigating to trace.axd on the root of the application.

Anders Norås - blog:
http://dotnetjunkies.com/weblog/anoras/
-----Original Message-----
In j2ee/JBuilder/WebLogic when you do a System.err.println(), you can seethe messages in the console that started the server. When I tried the sametype of thing with VS 2k3 .NET and ASPX, I don't see the messages. Where dothey go? What is the suggest logging method to use for debugging and fordevelopment apps?

I broke out the question into two parts cause I'm looking to find out how todo quick'n'dirty debugging on the fly vs something a bit more formal anddependable.

Thanks.
.

Nov 18 '05 #7

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

Similar topics

0
by: Phadnis | last post by:
hi. i have set up a proxy server which gets the text content but does not get the images. wat additional code i need to rite for this.. also this code works with only simple website that does not...
7
by: Mr. Mountain | last post by:
In the following code I simulate work being done on different threads by sleeping a couple methods for about 40 ms. However, some of these methods that should finish in about 40 -80 ms take as long...
24
by: Dave | last post by:
Maybe I'm missing something here, but I can't see the purpose of the 'finally' keyword. What is the difference between: try { doSomething() } catch { handleError(); }
2
by: Flip | last post by:
Where does Console.WriteLine() goto in a web app? I used to be able to do something like System.err.println() in java/j2ee web apps and I could see the adhoc debugging statements in the servers...
13
by: Mark A. Nadig | last post by:
I've got a console application in vb.net to replicate the behavior of the old DOS command CHOICE. I've got a timer event successfully firing, however the main thread is stuck on the console.read()....
4
by: Rich | last post by:
Dim bNcd, bNcm, bNqa, bNcur, bN0, bN1, bN2, bN3, bN4 As Boolean Dim arrBool As Boolean() = {bNcd, bNcm, bNqa, bNcur, bN0, bN1, bN2, bN3, bN4} Dim i As Integer bNcd = True bNcm = True bNqa =...
4
by: haitao.song | last post by:
Hi, As it is always stated that value type is allocated on stack, while reference types are on managed heap. How about the struct with string members? stuct A { string str; } String type is...
3
by: john | last post by:
Hi to All To demonstrate: public class MyBaseGenericClass<T> { } public class MyGenericClass1<T: MyBaseGenericClass<T> {
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: 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
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.