PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Talk to me about debugging

Reply

Talk to me about debugging

 
Thread Tools Rate Thread
Old 21-02-2006, 09:51 PM   #1
cj
Guest
 
Posts: n/a
Default 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.
  Reply With Quote
Old 21-02-2006, 10:29 PM   #2
Cerebrus99
Guest
 
Posts: n/a
Default 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.

  Reply With Quote
Old 22-02-2006, 02:43 AM   #3
CMM
Guest
 
Posts: n/a
Default 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
www.cmoya.com
"cj" <cj@nospam.nospam> wrote in message
news:O$p4KEzNGHA.1124@TK2MSFTNGP10.phx.gbl...
>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.



  Reply With Quote
Old 22-02-2006, 06:13 AM   #4
TerryFei
Guest
 
Posts: n/a
Default 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

--------------------
>Date: Tue, 21 Feb 2006 16:51:57 -0500
>From: cj <cj@nospam.nospam>
>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.1124@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: 208.254.170.98
>Lines: 1
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.vb:318882
>X-Tomcat-NG: microsoft.public.dotnet.languages.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.
>


  Reply With Quote
Old 22-02-2006, 07:00 PM   #5
Jim Wooley
Guest
 
Posts: n/a
Default Re: 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.
>


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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off