473,799 Members | 3,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debug.Writeline

kd
Hi All,

This question may sound very silly....anyway , here is goes!

Where can one see the output of Debug.Writeline ?

Thanks.
kd
Nov 21 '05 #1
14 1866
KD,

This one is not silly it was in the beginning a problem for me as well and
seldom asked in this newsgroup.

Open in View -> OtherWindows -> Output,

You see it is really good hidden.

I hope this helps,

Cor
Nov 21 '05 #2
kd
Cor,

The Output window, I guess is the window which displays the result of
compiliation. This window is already open in my IDE. The output window,
however does not show the result of Debug.Writeline

kd
"Cor Ligthert" wrote:
KD,

This one is not silly it was in the beginning a problem for me as well and
seldom asked in this newsgroup.

Open in View -> OtherWindows -> Output,

You see it is really good hidden.

I hope this helps,

Cor

Nov 21 '05 #3
KD,

Strange

This program in debug mode
\\\
Public Class KD
Public Shared Sub Main()
Debug.WriteLine ("Hello KD")
End Sub
End Class
///
has this as result in my output window

Hello KD
The program '[2132] TestProject16.e xe' has exited with code 0 (0x0).

Can you try it?

Cor
Nov 21 '05 #4
kd
Cor,

I tried your program too.

I don't get the result in my output window!

Wonder whether there is any setting which enables/disables this feature!

kd

"Cor Ligthert" wrote:
KD,

Strange

This program in debug mode
\\\
Public Class KD
Public Shared Sub Main()
Debug.WriteLine ("Hello KD")
End Sub
End Class
///
has this as result in my output window

Hello KD
The program '[2132] TestProject16.e xe' has exited with code 0 (0x0).

Can you try it?

Cor

Nov 21 '05 #5
KD,
Wonder whether there is any setting which enables/disables this feature!


Not that I know and because that I have strugled with it in past, I don't
think that I find it direct.

So you can see that I have changed the subject, because this is than a
typical Herfried problem (or for others when they know of course).

Cor
Nov 21 '05 #6
"kd" <kd@discussions .microsoft.com> schrieb:
This question may sound very silly....anyway , here is goes!

Where can one see the output of Debug.Writeline ?


Make sure VS.NET's configuration combobox (this combobox is embedded into
VS.NET's toolbar) is set to "Debug".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7
Cor/Herfried, thanks...I continue to learn from you two. I had been trying
to get this to work but it seemed that it should have been so simple that I
was embarassed to ask. Thanks to you two, I now have a better way to debug
my applications.

"Herfried K. Wagner [MVP]" wrote:
"kd" <kd@discussions .microsoft.com> schrieb:
This question may sound very silly....anyway , here is goes!

Where can one see the output of Debug.Writeline ?


Make sure VS.NET's configuration combobox (this combobox is embedded into
VS.NET's toolbar) is set to "Debug".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #8
kd
Hi,

I have set the configuration as 'Debug' and yet the output of
Debug.Writeline is not directed to the outout window.

kd

"Herfried K. Wagner [MVP]" wrote:
"kd" <kd@discussions .microsoft.com> schrieb:
This question may sound very silly....anyway , here is goes!

Where can one see the output of Debug.Writeline ?


Make sure VS.NET's configuration combobox (this combobox is embedded into
VS.NET's toolbar) is set to "Debug".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #9
kd
Hi,

I think, I was too fast to choose this post as the answer to my query. I
have set the configuration to Debug and yet, the output of Debug.WriteLine is
not shown in the output window.

Any suggestion would be appreciated.
Thanks

kd

"Herfried K. Wagner [MVP]" wrote:
"kd" <kd@discussions .microsoft.com> schrieb:
This question may sound very silly....anyway , here is goes!

Where can one see the output of Debug.Writeline ?


Make sure VS.NET's configuration combobox (this combobox is embedded into
VS.NET's toolbar) is set to "Debug".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #10

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

Similar topics

2
1544
by: John A. Bailo | last post by:
When I run this line, Debug.WriteLine("I am in OnHandler2 and MyEventArgs is {0}", e.m_id); and e.m_id = "Event args for event 1" What prints in the debug window is: Event args for event 1: I am in OnHandler1 and MyEventArgs is {0}
3
7213
by: Brett | last post by:
I use the following to output to the console during debugging: catch(Exception ex) { Debug.WriteLine("Error: " + ex.Message); } Many of the times on the console, the above is appended on the same line. Sometimes it goes on a new line. I don't have any thing in my code related to trace listeners. Any suggestions as to why this is occuring?
3
21139
by: Frank Rizzo | last post by:
Is there anyway to transparently redirect the output of the Debug.WriteLine statement from the Debug window to something else such as a console or a file? Thanks
7
18798
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net 2003 The sample in the help file does not work. I tried now for days ... Pls could anybody post a sample, including necessary imports and so on -
2
3589
by: Smoke | last post by:
Whats is the deal with Debug.WriteLine command... I mean, in my programs, i usually add many of those commands to debug it while programming, and to be able to find bugs and things easier, but, it is safe to leave those lines when u compile the program? or you are suposed to remove them? Maybe the compiler delete that lines automatically when u compile the program, but that wont make much sense since inside VS.net the program you launch is...
5
2871
by: John A Grandy | last post by:
how to use System.Diagnostics.Debug.WriteLine to write directly to a window viewable during debug mode (similar to Debug.Print in VB6)
5
3404
by: Billy | last post by:
Hi! How can I override "Debug.Writeline("Message")" so that will not show that msg in Debug window, but wrote it to a file. I already have a code to write to a file but I would like to use just "Debug" class (same name) for that. Inside of that code I will decide if I will wrote that message to debug window or to a file. I would like to use that two options: -Debug.Writeline("Message", 1) '1 is integer argument from 0-9...
0
1803
by: BA | last post by:
I posted on this once before and could not get a solution, I am hoping someone can help. I have a very strange code debug behavior that I cannot make heads or tails of: I have c# code being executed in BizTalk assemblies which is repeating debug statements. I tried debug.flush() and debug.close() which did not solve the problem. In my BizTalk process I call a static method:
0
1279
by: caa | last post by:
Hi there, people! I m working on a c# control. Using VS2003 and writing for .NET 1.1. I wrote an app that automaticly opens and closes (after a random Sleep) forms that own one instance of my control each. While running my application I'm seeing strange stacks like this: system.windows.forms.dll! ControlNativeWindow.WndProc(System.Windows.Forms.Message m = {System.Windows.Forms.Message}) + 0xda bytes
2
7213
by: Bob S | last post by:
I am using Debug.WriteLine and Trace.WriteLine to output messages from a dll. This dll is used in an application. No matter whether i run the program in release mode or debug mode and whether i define/undefine DEBUG and TRACE compiler definitions, I still get the messages in the Output window. What might be the problem? Thanks Bob
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10030
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.