473,467 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Debugging in VBA - 1) Overview

NeoPa
32,556 Recognized Expert Moderator MVP
Table of Contents - [Debugging in VBA]
Next Chapter - [Debugging in VBA - 2A) The Code Pane (F7)]
-----------------------------------------------------------------------------------------------
1) Overview.
There are some very important sub-windows (panes) within the debugger and I'll introduce you briefly to some of these first.
  1. The Code Pane (F7).
    This is the main pane and doesn't have a title.
    From here you can do all sorts of things with the code, including editing it. We'll cover some of the other things in more detail later on. Marked as {A} in attached screenshot.
  2. The Project Explorer Pane (Ctrl-R).
    This lists the hierarchy of objects that can contain code. Ultimately, they all drop from the overall project. Double-click on any object to open the code for that object in the Code Pane. Marked as {B} in attached screenshot.
  3. The Properties Pane (F4).
    Like any Properties Pane this shows all the properties for the selected object (within the Project Pane). Marked as {C} in attached screenshot.
  4. The Immediate Pane (Ctrl-G).
    This enables both displaying of Debug information as well as executing 'on the fly' code. Marked as {D} in attached screenshot.
  5. The Object Browser Pane (F2).
    This displays to the developer (you) what objects or properties contain, and/or are contained by, which other objects (or properties).
  6. The Locals Pane.
    This shows all the local variables, including their current contents.
  7. The Watch Pane.
    This allows you to view various variables and/or objects/properties as the code progresses. This can also be used to show results of calculations and even to cause the code to stop when certain conditions are met.

I will try to get some picture attachments posted to illustrate some of these panes, but they are rarely all on screen at once, and they can be placed in pretty well any position within the main VBA window anyway.

Attached Images
File Type: jpg VBADebugger.Jpg (70.9 KB, 2227 views)
May 18 '07 #1
0 6408

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: News User | last post by:
I'm comming from the background of being primarily a data processing programmer (Python) and I'd like to do some GUI stuff for a comercial project but I have quite a bit of time, nothing too...
1
by: Noah from IT Goes Click | last post by:
I'm comming from the background of being primarily a data processing programmer (Python) and I'd like to do some GUI stuff for a comercial project but I have quite a bit of time, nothing too...
0
by: peter | last post by:
Hello all, I would like to debug my python libraries, written in c++, with GDB (gnu debugger) I'm using the mingw compiler in a windows environment. As development environment I use eclipse...
1
by: Top Gun | last post by:
Does anyone have a link on how to set up Visual Studio.NET Architect Edition to step into a SQL Server stored procedure while debugging? IOW, I would like to follow C# source code from end-to-end.
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...
10
by: Doug Robertson | last post by:
First off, I'm a hardware/OS guy. I just write code on the side and I'm completely self taught - so bear in mind my total lack of expertise. I have a program originally written in VB2003 using...
4
by: John Wilmot | last post by:
I have a service that is set up to use remoting. Is there a way that calls from a web page to this service can be debugged in Visual Studio 2005?
0
NeoPa
by: NeoPa | last post by:
VBA executes whenever the code is triggered from within your project. This can be from all sorts of object events from simply opening a form to clicking on a command button. When something doesn't...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too)....
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.