Debugger stepping into referenced DLL

  • Thread starter Thread starter craig
  • Start date Start date
C

craig

Is it possible to step into the code of a referenced .net assembly from
within a project that is being debugged?

Thanks!!!
 
(I'm assuming it's not an assembly in your solution.)

Yes, provided:
1) the asembly you referenced (and want to step into) was compiled as DEBUG
(debug symbols were created)
2) You have the .pdb (debug symbols) for the assembly you referenced in the
same directory as the .dll (normally your bin dir)
3) You have the source to step into.
 
Yes on all three counts!

I have the source code in a different solution, and it was compiled in DEBUG
mode. It contains many of the base classes that I derive from in my
solution. But I would like to be able to set a breakpoint in the referenced
assembly and step into it from my solution. How can I do that?

Thanks!!!!
 
You need the debugger to load up the source first. Meaning, right when the
function you want to debug is called, do a 'step into'. This should load up
the class in the other solution, and once it's open, you can put breakpoints
anywhere in it.
 
Someone else also just pointed out to me that it is possible to drag the
file from the directory into the development environment and then set break
points in it. very cool.
 
Back
Top