VB6中的堆栈跟踪 [英] Stack Trace in VB6

查看:26
本文介绍了VB6中的堆栈跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Visual Basic 6.0 中获取堆栈跟踪信息.我的意思是我想找出导致类似于 .NET 堆栈跟踪错误的函数名称和确切行.我创建了一个 ActiveX DLL,它在我的测试环境中运行良好,但它在生产环境中引发错误(错误:91-对象变量或未设置块变量).非常感谢您对此的任何帮助.

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 trace. I have created an ActiveX DLL which works fine in my test environment but it throws an error in production environment(error : 91-Object variable or With block variable not set). Any help on this much appreciated.

推荐答案

这是一个很好的方法 - 对现有重复问题的回答.使用 MZTools 自动插入错误处理程序

This is a good way to do it - an answer on the existing duplicate question. Use MZTools to insert the error handlers automatically

或者,您可以在生产环境中使用 WinDBG,来自 Microsoft 的免费独立调试器.将您的 DLL 编译成带有符号的本机代码(创建 PDB 文件).

Alternatively, you can debug your built DLL in the production environment using WinDBG, a free standalone debugger from Microsoft. Compile your DLL into native code with symbols (create PDB files).

这是2006 年博文关于在 VB6 中使用 Windbg 的微软家伙,以及 2004 博客文章 另一位微软人对 Windbg 的简要介绍.

Here's a 2006 blog post by a Microsoft guy about using Windbg with VB6, and 2004 blog post by another Microsoft guy with a brief introduction to Windbg.

这篇关于VB6中的堆栈跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆