如何在WinDbg中查看VB6控制级变量?
我有一个崩溃文件,在其中我可以看到我自己的 VB6 用户控件之一导致了崩溃;即它的方法之一是堆栈跟踪的一部分,我可以看到负责的行。
从这里,我想检查其成员变量的状态。我该怎么做?
注意:我还有控件的私有符号。问题是能够检查“我”。命令 !object address_of_Me 似乎没有达到目的,所以我不知所措。
谢谢。
I have a crash file where I can see that one of my own VB6 user controls is responsible for the crash; i.e. one of its methods is part of the stack trace and I can see the line responsible.
From here, I'd like to inspect the state of its member variables. How do I do this?
Note: I also have the private symbols for my controls. The problem is being able to inspect "Me". The command !object address_of_Me doesn't seem to do the trick and so I'm at a loss.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
自从我不得不在 VB6 中执行此操作以来已经有 10 年了,但我记得我过去的生活中有很多 Printer.Print 语句:)
我曾经做过这样的事情来调试(但不是为了发布代码)
It's been 10 years since I had to do this in VB6, but I remember a lot of Printer.Print statements in my past life :)
I used to do things like this for debugging (but not for release code)
好吧,codeSMART 有一个选项在您的应用程序上安装全局句柄,第一次调用 SetUnhandledExceptionFilter (win api) 应该在加载模块主窗体或关闭程序时安装,因此调用 SetUnhandledExceptionFilter。
代码有点长,所以复制方法名称 y api 调用
这里还有模块的记录结构 y api 声明
进行修改 如何将 exe 异常路由回 VB6 应用程序?
well, codeSMART have one option install global handle on your application first call to SetUnhandledExceptionFilter (win api) is should be installed when load your module main or master form when is closing the program so call to SetUnhandledExceptionFilter.
The code is little long so copy methods names y api calls
Also here is Record Structure y apis declarations for the module
Take a revised that How to route the exe exception back to VB6 app?