Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging: Break into source code compiled into DLL.

Status
Not open for further replies.

Syerston

Programmer
Jun 2, 2001
142
GB
This is a project I have inherited from another employee.

The project in question has two parts. The source files for the user interface, including all forms and code modules held in one project, and the class modules held in another project. The class modules have been complied into a DLL which has been registered.

When I run the application in debug mode how am I able to break into the code in the class modules. Even though I have the source code for the two projects loaded in the Project Explorer it just jumps over the source files as it references the DLL.

Is there a certain way to recompile this DLL to allow me to do this. John
 
Reset the reference to the dll in the references dialog. You can set it so to reference the dll project instead of the dll itself.
Greetings,
Rick
 
This situation was also something I had queried. Unfortunately the suggestion offered has me stumped as I couldnt't add a project in the references tab - it wouldn't allow me. Please help.
 
It's named something like your project. If you find anything that looks like the project, or dll, name check it and see below the path (whether it's a dll ar a vbp).
Greetings,
Rick
 
I was able to add the *.vbp - but I still can't get it to step into that code. I found that both projects have to be in the same group in order for it to allow you add the dll project to the exe project. What am I missing?
 
Did you make your exe project the startup project ?
And did you actually set a reference to the dll project from within the project properties of your exe project ?
Greetings,
Rick
 
Yes. This I accomplished however any breakpoints within the dll project are simply ignored. Your attention is greatly appreciated.
 
Try to set a breakpoint in the exe at a function call into the dll and step into it, see what happens....
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top