Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vb6 debugging .exe to .dll

Tags:

vb6

Probably a question that has been asked before. Please guide me to any questions that might answer my question...

I have a VB6 .exe that calls a VB6 .dll. I would like to debug the .dll from the .exe code.

Any ideas on how to achieve that? It has been a very long time since I have played with vb6.

Thanks

like image 860
webdad3 Avatar asked Mar 16 '11 18:03

webdad3


3 Answers

Open both VB6 projects in one VB6 IDE (a VB Project Group ... creates and uses a file extension of .vbg if I remember correctly). Also, set debugging to Break in Class Module.

like image 186
HardCode Avatar answered Oct 31 '22 08:10

HardCode


You need access to the DLL symbols (usually a PDB file). Make sure that the dll symbols are being generated.

If you open the dll as raw text and go to the end of the file, you can find the path where the pdb file is expected to be located.

like image 28
davidag Avatar answered Oct 31 '22 07:10

davidag


I think you have to add the dll project to the to the exe project (File->Add project) to step into the dll code. Update: Yes, I think you'll also need to remove the reference to compiled dll.

like image 20
Booji Boy Avatar answered Oct 31 '22 09:10

Booji Boy