Debug Output

  • Thread starter Thread starter Nathan Sokalski
  • Start date Start date
N

Nathan Sokalski

When debugging applications, I often end up doing several runs looking at
the same areas. Is there any way to add a command like Debug.Print to my VB
code rather than continuously stopping to enter it in the Command Window
during a debug session? Thanks.
 
Nathan Sokalski said:
When debugging applications, I often end up doing several runs looking at
the same areas. Is there any way to add a command like Debug.Print to my
VB code rather than continuously stopping to enter it in the Command
Window during a debug session?

You can actually use 'Debug.Write', 'Debug.WriteLine', and 'Debug.Print' for
this purpose directly in the source code.
 
Nathan,
In addition to the other comments:

This article covers both Debug.WriteLine & Trace.WriteLine plus some other
advance "debugging" features you can add to your code:
http://msdn.microsoft.com/msdnmag/issues/01/07/vbnet/

This article shows how to trace & debug in VB.NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q313417&ID=kb;en-us;Q313417&SD=MSDN


--
Hope this helps
Jay [MVP - Outlook]
T.S. Bradley - http://www.tsbradley.net


| When debugging applications, I often end up doing several runs looking at
| the same areas. Is there any way to add a command like Debug.Print to my
VB
| code rather than continuously stopping to enter it in the Command Window
| during a debug session? Thanks.
| --
| Nathan Sokalski
| (e-mail address removed)
| http://www.nathansokalski.com/
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top