Talk to me about debugging

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

    #1

    Talk to me about debugging

    I run my programs with F5. I can use F11 to step through them. But, if
    it moves to another class or something suddenly it just runs w/o asking
    or telling me. I want it to continue making me press F11. Any advice?

    Also at the bottom of the IDE are Index Results, Command Window, and
    Output windows. I get the command window and output window. I don't
    know what the index results window is. And isn't there some window that
    I can open that lists variables etc that are currently in memory and
    their values? Right now I have to type "? variable" in the command
    window. Comments requested and welcomed.
  • Cerebrus99

    #2
    Re: Talk to me about debugging

    Hi CJ,

    The Autos Window displays the variables in the current line and the
    previous line (Visual C#) or the variables in the current line (where
    you've set a breakpoint), and three lines on either side of the current
    line.

    The Locals Windows is a more detailed version of the Autos Window,
    since it lists the values of ALL variables and objects.

    I personally prefer the Autos Window during Debugging.

    HTH,

    Regards,

    Cerebrus.

    Comment

    • CMM

      #3
      Re: Talk to me about debugging

      Debugging "stops" when the program resumes "listening to events".... i.e.
      your class is a Form and you just finished stepping through a Button_Click
      event. There's no where else to go. No code is executing (except for the
      behind the scenes message pump).

      Hunt through the View menu and Debug -> Windows menu to see those other
      windows you're after (Locals, Watch, etc).

      --
      -C. Moya

      "cj" <cj@nospam.nosp am> wrote in message
      news:O$p4KEzNGH A.1124@TK2MSFTN GP10.phx.gbl...[color=blue]
      >I run my programs with F5. I can use F11 to step through them. But, if it
      >moves to another class or something suddenly it just runs w/o asking or
      >telling me. I want it to continue making me press F11. Any advice?
      >
      > Also at the bottom of the IDE are Index Results, Command Window, and
      > Output windows. I get the command window and output window. I don't know
      > what the index results window is. And isn't there some window that I can
      > open that lists variables etc that are currently in memory and their
      > values? Right now I have to type "? variable" in the command window.
      > Comments requested and welcomed.[/color]


      Comment

      • TerryFei

        #4
        RE: Talk to me about debugging

        Hi Cj,
        Welcome to MSDN Newsgroup!

        I hope the following article is also helpful for you:
        Title: Debugging VB .NET Applications
        URL: http://www.startvbdotnet.com/forms/debug.aspx

        Best Regards,

        Terry Fei [MSFT]
        Microsoft Community Support
        Get Secure! www.microsoft.com/security

        --------------------[color=blue]
        >Date: Tue, 21 Feb 2006 16:51:57 -0500
        >From: cj <cj@nospam.nosp am>
        >User-Agent: Thunderbird 1.5 (Windows/20051201)
        >MIME-Version: 1.0
        >Subject: Talk to me about debugging
        >Content-Type: text/plain; charset=ISO-8859-1; format=flowed
        >Content-Transfer-Encoding: 7bit
        >Message-ID: <O$p4KEzNGHA.11 24@TK2MSFTNGP10 .phx.gbl>
        >Newsgroups: microsoft.publi c.dotnet.langua ges.vb
        >NNTP-Posting-Host: 208.254.170.98
        >Lines: 1
        >Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
        >Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:318882
        >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
        >
        >I run my programs with F5. I can use F11 to step through them. But, if
        >it moves to another class or something suddenly it just runs w/o asking
        >or telling me. I want it to continue making me press F11. Any advice?
        >
        >Also at the bottom of the IDE are Index Results, Command Window, and
        >Output windows. I get the command window and output window. I don't
        >know what the index results window is. And isn't there some window that
        >I can open that lists variables etc that are currently in memory and
        >their values? Right now I have to type "? variable" in the command
        >window. Comments requested and welcomed.
        >[/color]

        Comment

        • Jim Wooley

          #5
          Re: Talk to me about debugging

          > I run my programs with F5. I can use F11 to step through them. But,[color=blue]
          > if it moves to another class or something suddenly it just runs w/o
          > asking or telling me. I want it to continue making me press F11. Any
          > advice?
          >
          > Also at the bottom of the IDE are Index Results, Command Window, and
          > Output windows. I get the command window and output window. I don't
          > know what the index results window is. And isn't there some window
          > that I can open that lists variables etc that are currently in memory
          > and their values? Right now I have to type "? variable" in the
          > command window. Comments requested and welcomed.
          >[/color]

          It is possible your code has moved from a section compiled in debug mode
          to one compiled in release mode.

          As for your debugging window question, in addition to the Autos and Locals
          window, there is a Immediate window and Watch window which you may wish to
          investigate. Additionally, you can right click on a property and select QuickWatch
          to see a listing of all of it's property values at that time.

          Jim Wooley


          Comment

          Working...