Remote debugging in VB6

后端 未结 3 1296
甜味超标
甜味超标 2020-12-10 15:13

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 C

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 15:29

    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

提交回复
热议问题