Stack Trace in VB6

后端 未结 5 1983
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 14:44

Is it possible to get the stack trace information in Visual Basic 6.0. I mean I want to find out the function name and exact line that causes the error similar to .NET stack

5条回答
  •  日久生厌
    2021-01-13 15:15

    My preferred method for doing this is HuntERR ; it's under a permissive license so can be used with impunity in any project.

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

    This is an excellent static library for VB6 that permits full stack traces with as much information as you care to include.

    It benefits tremendously from having some automation in your IDE to insert the error handlers and line numbers.

    The archive as linked has a number of extras that I am not familiar with, including what seems to be a VB6 IDE addin - I shall be adding this to my collection of VB6 kit.

    This library can literally take you from going "HUH?" to having a stack trace with full line numbering, it gives VB6 an professional level of error handling when used correctly.

提交回复
热议问题