|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Talk to me about debuggingI 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. 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. 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). Show quoteHide quote "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. 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 -------------------- Show quoteHide quote >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.1***@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. > > I run my programs with F5. I can use F11 to step through them. But, It is possible your code has moved from a section compiled in debug mode > 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. > 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
Text Files: Number of Lines
Memory Leaking in VB.NET switch form sqlserver to access at runtime Is it better to use Try or to use Resume Next? Items property How to change color line by line in a rich textbox? Q: Dataview and a grid Settings.Settings CLS-complaint vb.net2005 got error when put object |
|||||||||||||||||||||||