473,503 Members | 1,617 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 1837
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.exe' 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.exe' 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
KD,

Are you sure because I was ashamed that I did not tell you that about the
debug setting I was thinking that that was obvious.

Can you try this one (what than always shows it in that output window)
\\\
Public Class KD
Public Shared Sub Main()
Console.WriteLine("Hello KD")
End Sub
End Class
///
Cor
Nov 21 '05 #11
kd

Console.WriteLine works, but Debug.WriteLine does not!

"Cor Ligthert" wrote:
KD,

Are you sure because I was ashamed that I did not tell you that about the
debug setting I was thinking that that was obvious.

Can you try this one (what than always shows it in that output window)
\\\
Public Class KD
Public Shared Sub Main()
Console.WriteLine("Hello KD")
End Sub
End Class
///
Cor

Nov 21 '05 #12
"kd" <kd@discussions.microsoft.com> schrieb:
Console.WriteLine works, but Debug.WriteLine does not!


What's the type of your project?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #13
kd

The project type is "Windows Application"

kd

"Herfried K. Wagner [MVP]" wrote:
"kd" <kd@discussions.microsoft.com> schrieb:
Console.WriteLine works, but Debug.WriteLine does not!


What's the type of your project?

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

Nov 21 '05 #14
How are you starting the application? Are you just pressing F5 or are you
using CTRL F5?

Gerry
"kd" <kd@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...

The project type is "Windows Application"

kd

"Herfried K. Wagner [MVP]" wrote:
"kd" <kd@discussions.microsoft.com> schrieb:
> Console.WriteLine works, but Debug.WriteLine does not!


What's the type of your project?

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

Nov 21 '05 #15

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

Similar topics

2
1525
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...
3
7167
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...
3
21042
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
18778
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...
2
3579
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...
5
2827
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
3372
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...
0
1783
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...
0
1246
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...
2
7194
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...
0
7202
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
7084
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
7278
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,...
1
6991
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
7458
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...
0
5578
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,...
1
5013
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.