Solved

debugging an application for deployment, advice?

Posted on 2004-03-22
6
186 Views
Last Modified: 2013-11-22
I'm about to deploy my first VB application to a customer... I need some advice.

I am attempting to do extensive beta-testing before I deploy the application and would like to know how I should perform this from others who have done it.

First, I placed in each function/subroutine:

function doSomething
  on error goto doSomethingError

  'whatever I put in the function
  exit function
doSomethingError:
  Msgbox "Error found at doSomething " & err.Description
end function

is this the best way to catch errors during the testing phase and during the release?

Also I will have a few other individuals testing the application on different computers since I know that being the developer I probably am used to running it a particular way and they can find things I won't think of. What else can I do to make sure the deployment is successful? Is there anything else in VB I should implement that will be very good to have before or during deployment? Please let me know. I have completed a java application before that worked great on release but I'm still kind of new with VB stuff so in a sense you can consider me a beginner on deployment in VB. ;-) thanks for any advice

guid
0
Comment
Question by:guidway
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Accepted Solution

by:
1markmc earned 150 total points
ID: 10650005
Create an error log and have the testers send this log to you periodically.  Code your application to writing to the error log to include the module name as below:

WriteToLog Err.Number, Me.Name & ".GetTestResults " & Err.Source, Err.Description

0
 
LVL 12

Author Comment

by:guidway
ID: 10650386
one more question (I'll raise the points since this is an add-on question). Should I use the native VB errors in the subs/functions or raise my own using Err.Raise ?

just curious which is better... thanks

guid
0
 
LVL 12

Author Comment

by:guidway
ID: 10650403
I'll give time for anyone else to comment with ideas and close this tomorrow morning... thanks to any who respond. I appreciate it!

guid
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 13

Assisted Solution

by:rettiseert
rettiseert earned 150 total points
ID: 10650717
Hi

You can use Erl to get the number of the line where the error was generated (you'll have to put a number to every line where an error can happen)

Function doSomething()
   On Error Goto doSomethingError
   10   a = 1
   20   a = a / 0     'Division by 0, an error is generated here
   30   a = 2
   Exit Function

doSomethingError:
   MsgBox "Error found at doSomething at line" & Str(Erl) & vbCrLf & "Error number:" & Str(Err.Number)

End Function
0
 
LVL 1

Assisted Solution

by:MADisonMAN
MADisonMAN earned 150 total points
ID: 10653324
Additionally you can generate email to specific tech/group at the end depending how critical the error is. And u can also add the followings to the log file:

date/time stamp
user/domain info
machine/os info
module info where Err occurs
some test results
Err.Number and Err.Description
0
 
LVL 12

Author Comment

by:guidway
ID: 10663298
thanks everyone, I've integrated almost every idea in the application. :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question