|
-
Jul 22nd, 2005, 07:35 AM
#1
Thread Starter
Junior Member
debug.writeline?
Hi...i'm just wondering what does debug.writeline does in a code?...can anyone explain it?...i've read from msdn but can't seem to understand..anyone can put it in a much simpler format?
-
Jul 22nd, 2005, 08:37 AM
#2
Member
Re: debug.writeline?
Simple answer is that it does the same thing as debug.print in VB6. So for example if you have the following piece of code
Code:
Dim intInteger As Int16
intInteger = 42
Debug.WriteLine("value is " & intInteger)
when you run this in the IDE if you look in the output window you will see 'value is 42' printed out. It can be useful to see what the value of variables etc are in different parts of your program but with the nice tooltips in vb.net its also quite easy to see these values when you step through the program.
This is the simplest format i could put this in so hope it helps or explains.
-
Jul 22nd, 2005, 04:13 PM
#3
Re: debug.writeline?
basilisk is right. If I may add that you can also use DebugView to watch the output of Debug.WriteLine() statements when you run the code outside the Visual Studio IDE. This works only with debug builds though.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|