5
votes

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

3

3 Answers

6
votes

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.

4
votes

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.

3
votes

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.