Debugging a referenced dll

To debug a piece of code not referenced as project but as dll:

Copy the .pdb file of the dll to debug to the reference folder of the dll
Run the application that uses the dll
Open the project with the dll source
Set breakpoint in the dll code
Debugger – attach to process, choose the running application
Invoke a command in the application that will execute the dll code
The breakpoint will be hit


%d bloggers like this: