Hi Gurus
I noticed that when you have a class module without error handling, you can
not actually debug it. That is to say, you will get an error when calling
the class, but it does not tell you where the error takes place. This is
especially difficult if you have several stacks within the class itself.
Here is what I do
1. create new instance of class
2. "let" some values in class
3. call a procedure in the class (open report)
4. this public sub, open report, calls several functions in the class itself
(private functions).
I get an error at 3, but I can not work out exactly where at 4 the error
occurs. Is there a way to work this out? 4 2425
When debugging, in the VB Editor, go to Tools -> Options, and somewhere in
there, you'll find 3 error handling options. The default option is to break
on unhandled errors, but there are 2 other options, Break in Class Module, and
Break on All Errors. If you select either of those other 2 options, the code
will stop on the line that has your error and ignore the active error handling
in the calling code. Remember to set that back to the default later.
On Mon, 21 Jun 2004 17:44:12 +1200, "WindAndWav es" <ac****@ngaru.c om> wrote: Hi Gurus
I noticed that when you have a class module without error handling, you can not actually debug it. That is to say, you will get an error when calling the class, but it does not tell you where the error takes place. This is especially difficult if you have several stacks within the class itself.
Here is what I do
1. create new instance of class 2. "let" some values in class 3. call a procedure in the class (open report) 4. this public sub, open report, calls several functions in the class itself (private functions).
I get an error at 3, but I can not work out exactly where at 4 the error occurs. Is there a way to work this out?
WindAndWaves wrote: Hi Gurus
I noticed that when you have a class module without error handling, you can not actually debug it. That is to say, you will get an error when calling the class, but it does not tell you where the error takes place. This is especially difficult if you have several stacks within the class itself.
Here is what I do
1. create new instance of class 2. "let" some values in class 3. call a procedure in the class (open report) 4. this public sub, open report, calls several functions in the class itself (private functions).
I get an error at 3, but I can not work out exactly where at 4 the error occurs. Is there a way to work this out?
A Guess (since I use error trapping, never ran into this problem)
From code window, Tools->Options->General->Break in Class Module.
But you should error trap the code anyway.
--
Error reading sig - A)bort R)etry I)nfluence with large hammer
You can change the options for error handling to Break in Class module but
you should be error trapping in the class module anyway. If you want the
error to propagate to the calling code then you should do this explicitly
using err.raise.
--
Terry Kreft
MVP Microsoft Access
"WindAndWav es" <ac****@ngaru.c om> wrote in message
news:KB******** **********@news .xtra.co.nz... Hi Gurus
I noticed that when you have a class module without error handling, you
can not actually debug it. That is to say, you will get an error when calling the class, but it does not tell you where the error takes place. This is especially difficult if you have several stacks within the class itself.
Here is what I do
1. create new instance of class 2. "let" some values in class 3. call a procedure in the class (open report) 4. this public sub, open report, calls several functions in the class
itself (private functions).
I get an error at 3, but I can not work out exactly where at 4 the error occurs. Is there a way to work this out?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Moon |
last post by:
I'm setting up a Win Server 2003 for remote debugging.
From this page, I see that I need to set two registry keys on the server:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vctskinstallingremotedebugmonitor.asp
This key already exists:
with:
Name: (Default)
Type: REG_SZ
|
by: Alex Traud |
last post by:
hello ng,
is there a possibility to debug a template class?
i have a template class Polyom<T> (which implements a polynomial) defined in
the file polynom.h.
thanks in advance
alex
|
by: Craig |
last post by:
I started this week recomipling all our projects under vc++7 which is ok by
me. most of it worked fine and what the compiler spat out was quickly fixed
without too much bother.
Then came a service. Now this services works a treat under vc++6. under
vc++7 it runs but completely skips over the most important part, i.e. the
bit that does the work. I could handle this a whole lot better if the
debugger wasn't so painfully slow. Its like...
|
by: R Millman |
last post by:
under ASP.NET, single stepping in debug mode appears not
to stop within event procedures. i.e. 1) Create web page
with submit button and event procedure for the click
event in the code behind page, 2) Breakpoint in the
Page_Load, 3) debug the web page and click the submit
button, 4) "step into" under debug several times, 5) The
debugger does not stop at any of the statements in the
click event handler. A breakpoint is needed in each...
|
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 converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
| |
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 project in debug mode (by
hitting F5) it gives an error message
"Error while trying to run project: Unable to start debugging on the web
server.
|
by: Brian Bischof |
last post by:
I'm having troubles getting the debugging process to work consistenly for
external classes. I got it to work once and then I turned it off. But now I
can't get re-enabled. Here is what I'm doing. If someone could tell me what
I'm missing that would be great.
1. Create an external class and call it Test.dll.
2. Create a test Asp.net app called App.sln.
3. For App.sln I set a reference to Test.dll.
4. Compile App.sln and run it. The web...
|
by: snicks |
last post by:
I'm trying to exec a program external to my ASP.NET app using the following
code. The external app is a VB.NET application.
Dim sPPTOut As String
sPPTOut = MDEPDirStr + sID + ".ppt"
Dim p As New System.Diagnostics.Process
'p.Start(MDEPDirStr & "macrun.exe", sPPTOut)
p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE")
'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
|
by: Rick |
last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to
remote debug, when build ing the web site there is not a dll or PDB file
generated. I can debug on my local machine but unable to attach to the
process when running from the web server.
Can someone tell me how to remote debug an ASP.Net Website that does not
genate a dll or PDB file?
Thanks in advance!
Rick
|
by: jwwicks |
last post by:
C/C++ Programs and Debugging in Linux
This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |