Answered by:
debug plugin issue?

Question
-
Hello - I'm trying to debug a plugin. I rebuild the solution, then I copy the plugins.dll and pdb to C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly. I also register the latest plugins.dll through the plugin registration tool.
Then I attach to process w3wp.exe(x64) and w3wp.exe(x86). I also attach to 2 CrmAsyncService.exe processes in the process list.
However, the breakpoint in my plugin code is displayed as an empty circle with a tooltip that says: "The breakpoint will not currently be hit. The source code is different from the original version."
In the past, I've seen the empty breakpoint circles, initially. However, when the CRM app hit the code marked with a breakpoint, the breakpoint would light up and then get hit. This was in the past, for a different application. In my current setup, the breakpoints aren't getting set at all.
So what steps can I take to troubleshoot the reason why I'm not able to get my cRM app hooked into the debugger?Friday, September 6, 2013 9:51 PM
Answers
-
Hi,
Make sure that the build and the source are same, then after copying the dll in the cache, do IIS reset. Then check the CRM services has been started (for example browse CRM in IE). Finally you could attach to the process and put your breakpoints normally.
- Edited by Payman BiukaghazadehEditor Saturday, September 7, 2013 4:32 AM typo
- Proposed as answer by Payman BiukaghazadehEditor Saturday, September 7, 2013 4:32 AM
- Marked as answer by Payman BiukaghazadehEditor Tuesday, September 24, 2013 1:55 PM
Saturday, September 7, 2013 4:31 AMModerator
All replies
-
Hi,
Make sure that the build and the source are same, then after copying the dll in the cache, do IIS reset. Then check the CRM services has been started (for example browse CRM in IE). Finally you could attach to the process and put your breakpoints normally.
- Edited by Payman BiukaghazadehEditor Saturday, September 7, 2013 4:32 AM typo
- Proposed as answer by Payman BiukaghazadehEditor Saturday, September 7, 2013 4:32 AM
- Marked as answer by Payman BiukaghazadehEditor Tuesday, September 24, 2013 1:55 PM
Saturday, September 7, 2013 4:31 AMModerator -
Hi,
Please clean the source and rebuild again and put the DLL in the bin folder, Restart the W3p service and give try.
Thanks!
Saturday, September 7, 2013 4:58 AM -
Hi,
If you are using CRM2011, you could also use the Plugin Profiler (http://blog.sonomapartners.com/2013/03/debugging-crm-2011-plugins-with-the-plugin-profiler.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+typepad%2Fsonoma+%28Sonoma+Partners+Microsoft+CRM+Blog%29).
Michael Palmer
xRMPalmer
@MJFPalmer
Rockstar365
Saturday, September 7, 2013 6:56 AM