468,457 Members | 1,736 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,457 developers. It's quick & easy.

Talk to me about debugging

cj
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.
Feb 21 '06 #1
4 1009
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.

Feb 21 '06 #2
CMM
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$**************@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.

Feb 22 '06 #3
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$**************@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!TK2MSFT NGP10.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.


Feb 22 '06 #4
> 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
Feb 22 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Serdar Kalaycý | last post: by
2 posts views Thread by Andy Fish | last post: by
5 posts views Thread by Velvet | last post: by
reply views Thread by Jeff Rush | last post: by
41 posts views Thread by x01001x | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.