Debug Output

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan Sokalski

    #1

    Debug Output

    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
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。



  • Cor Ligthert [MVP]

    #2
    Re: Debug Output

    Nathan,

    Almost as you wrote.

    http://msdn.microsoft.com/library/de...mberstopic.asp

    I hope this helps,

    Cor


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Debug Output

      "Nathan Sokalski" <njsokalski@hot mail.com> schrieb:[color=blue]
      > 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?[/color]

      You can actually use 'Debug.Write', 'Debug.WriteLin e', and 'Debug.Print' for
      this purpose directly in the source code.

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

      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: Debug Output

        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



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


        "Nathan Sokalski" <njsokalski@hot mail.com> wrote in message
        news:%233r07ms0 FHA.2652@TK2MSF TNGP14.phx.gbl. ..
        | 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
        | njsokalski@hotm ail.com
        | http://www.nathansokalski.com/
        |
        |


        Comment

        Working...