<p>VB 6.0 does not have any global handler.To catch runtime errors,we need to add a handler in each method where we feel an error can occur.But, still some places might be left out.So,we end up getting runtime errors.Adding error handler in all the methods of an application,the only way?</p>

[{'answer_id': 65054, 'author': 'Darrel Miller', 'author_id': 6819, 'author_profile': 'https://Stackoverflow.com/users/6819', 'pm_score': 4, 'selected': True, 'text': '<p>No there is no way to add a global error handler in VB6.  However, you do not need to add an error handler in every method.  You only really need to add an error handler in every event handler.  E.g. Every click event,load event, etc</p>\n'}, {'answer_id': 65115, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': -1, 'selected': False, 'text': '<p>on error resume next - is kinda close but its been a while.\nyou might want to look up any caveats</p>\n'}, {'answer_id': 65184, 'author': 'Brad Richards', 'author_id': 7732, 'author_profile': 'https://Stackoverflow.com/users/7732', 'pm_score': 1, 'selected': False, 'text': '<p>Also: errors do propagate upwards: if method X calls methods Y and Z, a single error handler in method X will cover all three methods.</p>\n'}, {'answer_id': 67820, 'author': 'Mike Dimmick', 'author_id': 6970, 'author_profile': 'https://Stackoverflow.com/users/6970', 'pm_score': 2, 'selected': False, 'text': '<p>While errors do propogate upwards, VB6 has no way to do a stack trace, so you never know which method raised the error. Unfortunately, if you need this information, you have to add a handler to each method just to log where you were.</p>\n'}, {'answer_id': 2929616, 'author': 'Marc G.', 'author_id': 295160, 'author_profile': 'https://Stackoverflow.com/users/295160', 'pm_score': 0, 'selected': False, 'text': '<p>I discovered this tool yesterday:</p>\n\n<p><a href="http://www.everythingaccess.com/simplyvba-global-error-handler.htm" rel="nofollow noreferrer">http://www.everythingaccess.com/simplyvba-global-error-handler.htm</a></p>\n\n<p>It is a commercial product that enables global error handling in VB6 and VBA applications.</p>\n\n<p>It has its cost but does its job perfectly. I have seen other tools (free though) helping in this VB6 mangle, but none can cover a true real global error handling like "SimplyVB6 Global Error Handler for VB6" does.</p>\n\n<p>With "SimplyVB6 Global Error Handler for VB6", there is no need to change any line of existing code, and no need to number the lines of code (via a plug-in or something).\nJust enable Global error handling (one line of code in the main module) and you are all set.</p>\n\n<p>"SimplyVB6 Global Error Handler for VB6":</p>\n\n<ul>\n<li>can show the call stack with real module and function names, as well as display the source code line.</li>\n<li>Works only with P-Code compiled VB6 programs.</li>\n<li>can work via early or late binding (no DLL Hell).</li>\n</ul>\n\n<p>I am not in any way affiliated to www.everythingaccess.com, just happy to have found it yesterday afternoon, was kind of looking at this problem again as one of my customers was having bugs in our VB6 application. I was able to test the tool yesterday afternoon, exchanging emails with the www.everythingaccess.com support and getting the evaluation product per mail.\nTheir web side does not allow yet to download the evaluation version of the VB6 product, you have to email them but they are answering in less than an hour.</p>\n'}]
['https://Stackoverflow.com/questions/65020', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9087/']