Debuging a dll - How?

A

Alfonso Morra

Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA
 
A

Alfonso Morra

Alfonso said:
Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA

PS: I am using VC 7.1
 
A

adebaene

Alfonso Morra a écrit :
Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA

You should be : check in the "modules" debug window that the DLLs are
loaded and that their symbols have been found. If you copy your DLLS in
another directory for running (where the exe is), you should also copy
the pdb that come with them.

Arnaud
MVP - VC
 
A

Alfonso Morra

Alfonso Morra a écrit :




You should be : check in the "modules" debug window that the DLLs are
loaded and that their symbols have been found. If you copy your DLLS in
another directory for running (where the exe is), you should also copy
the pdb that come with them.

Arnaud
MVP - VC

I found out the problem. I assumed that once the project config had been
changed to Debug, the dub symbols would be generated automatically. I
had to explicitly specify this under the linker options.

Secondly, the way (via the GUI) DLLs are debugged is different from VC6.
I had to navigate a completely different menu structure and GUI to one
that I was familiar with. Nonetheles, I have solved the problem now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top