vb question

Posted on 2006-03-20
Medium Priority
Last Modified: 2010-04-07
I have an app that is somehow getting lost someplace, and I can't figure out what is going on.

I enter a function, have a stop at the end and sometimes my program never hits the end.
It isn't freezing, I just don't know what step it is on.

I am communicating via a com port with another machine, and if I step through the program, I can't replicate it.

Pretty much, I was wondering, is there any way to figure out the last few functions where the program executed?

Is there a way to trace the path of functions?

Question by:jackjohnson44
LVL 11

Accepted Solution

leclairm earned 1200 total points
ID: 16237419
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 800 total points
ID: 16237426
You're best bet is to simply start spattering your subs/functions with either Debug.Print "you are here..." or use MsgBox "you are here..."

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses

850 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