Link to home
Start Free TrialLog in
Avatar of Howard Bash
Howard BashFlag for United States of America

asked on

Cannot attach processes to code

I'm working on an event receiver for a list in SharePoint 2016.  I am having  trouble getting the code to break.  I attached to all the w3wp processes and as I'm attaching them, I see the breakpoint icon changing to hollow and it's popup says I'm not loading the documents symbols.  

Any suggestions with this would be greatly appreciated.
Avatar of kaufmed
kaufmed
Flag of United States of America image

Have you generated the PDB files for your code? The PDB files need to be from the exact build that generated the code--that is, it can't just be the same source code, it has to be the PDB files that were output at the same time as the DLLs.
In addition to what kaufmed has stated, sometimes symbols (especially in Web services) will not be loaded until you call a method/route which requires (or imports) the depended code file where the break point is specified.

-saige-
Avatar of Howard Bash

ASKER

I deleted a space in the code and so I needed to redeploy...
Deleting white space still requires a redeploy to debug.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.