Stack Trace in VB6

Is it possible to get stack trace information in Visual Basic 6.0. I want to say that I want to find out the name of the function and the exact string that causes the error, similar to the .NET stack trace. I created an ActiveX DLL that works fine in my test environment, but it throws an error in the production environment (error: 91-Object variable or With block variable not set). Any help on this is greatly appreciated.

+3
source share
5 answers

This is a good way to do this - an answer to an existing duplicate question. Use MZTools to automatically install error handlers.


DLL , WinDBG - Microsoft. DLL ( PDB).

2006 Microsoft Windbg VB6 2004 Microsoft Windbg.

+4

VB6, , .

, , , . -, :

Public Sub LogCall(message as String)
    Open "c:\My Documents\sample.txt" For Output As #1
    Print #1, message
    Close #1
End Sub

LogCall "MyFunction: Line 42"

, .

, , - , Set , .

+1

- HuntERR; , .

http://www.devx.com/vb2themax/Tip/19792

VB6, , .

, IDE .

, , , VB6 IDE - VB6.

"HUH"? , VB6 .

+1

You may not be able to find out in VB6. previous question .
Get as much information as possible from the Err object .

0
source

Source: https://habr.com/ru/post/1757254/


All Articles