VB6中的远程调试 [英] Remote debugging in VB6

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

问题描述

是否可以远程调试VB6外部启动的进程?



该应用程序是具有大量dll / ocx资源的VB6应用程序。我正在尝试使用免注册COM来设置VB6应用程序的ClickOnce部署,但是在执行时却出现错误。



我对VB6的理解重定向COM注册可能意味着这不可能,但是我认为有人可能有更好的主意。

解决方案

我相信在VB6中进行调试时,它不会附加到正在运行的二进制文件中,而是在自己的进程中解释代码。这就是为什么在调试时任务管理器和Win32 API将VB6.exe显示为正在运行的应用程序的原因。并非总是可以拦截这些呼叫。



您可能不得不求助于智能日志记录(即,在错误所在的点附近记录变量的值)希望找到它所在的代码行和/或相关变量的状态。)



祝你好运


Is it possible to remotely debug a process started outside VB6?

The application is a VB6 application with quite a few dll/ocx resources. I am attempting to setup a ClickOnce deployment, using Registration-Free COM, of the VB6 app but have been getting errors when it executes.

My understanding of the way that VB6 redirects COM registerations will probably mean that this is not possible but I thought someone might have a better idea.

解决方案

I believe that when debugging in VB6, it does not attach to a running binary but instead interprets the code within it's own process. This is why the Task Manager and Win32 APIs show VB6.exe as the running app when debugging.

Also as you say, VB6 sometimes short-circuits calls to COM libraries so intercepting these calls is not always possible.

You're probably going to have to resort to intelligent logging (i.e. log the values of variables around the points where the errors you are getting occur in the hope of locating the line of code it occurs on, and/or the state of relevant variables.)

Good luck

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

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