473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 1103
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
2
by: Andy Fish | last post by:
Hi, Using VS.NET 2003, when I use 'F5' to start debugging my web app, it obviously attaches the IDE to IIS for server debugging. However, it also seems to put IE into some kind of debugging mode...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
0
by: Jeff Rush | last post by:
October has arrived and the deadline for submitting a proposal to give a talk at PyCon 2007 is October 31 (November 15 for tutorials). While it is a PyCon tradition to wait until the last minute...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
0
by: GHUM | last post by:
We took longer then planned to open the registration. Some potential speakers came in late. To make it even, we extended talk submission deadline for ONE WEEK. New deadline is Friday, 25th...
41
by: x01001x | last post by:
When programming in C (not C++) how does one send information to a hardware device such as a video card or modem? How is this done in Linux C programming versus Microsoft C programming?
4
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.