views:

40

answers:

3

My main solution is using code from a utiliy class library, that I wrote myself, but is part from an other solution.I want to set a breakpoint in the referenced .dll. How can I do that?

+1  A: 

You can do one of the following:

  1. Add the DLL project to the solution containing your executable. Then you can set breakpoints as normal.
  2. You could instead just open the DLL project and use the Debug -> Attach to Process to attach to your running EXE
Josh Einstein
+1  A: 

Make sure you have the .pdb file in the bin/debug folder where the referenced class library dll resides. When you are debugging your current solution you should be able to step into the code from your class library. When you step into the class library you will be able to set breakpoints.

Matt Dearing
+2  A: 

Click Debug, New Breakpoint, Break at Function, then enter the full name of the function.

SLaks