I have written merge handler code for custom facet by seeing sitecore documentation. Searched a lot but did not find a way to debug code for MergingCalculatedFacetHandler . Is there any way to do that?

  • is not clear for me what kind of code you try to debug. Can you add here you code and pipelines which you try to debug – Vlad Iobagiu Aug 2 '18 at 6:42
  • I have updated my question. Is it clear now ? Or I have to update more? – Anik Saha Aug 2 '18 at 7:21

Debugging of xConnect is no different from debugging any other website hosted in IIS.

  1. Make sure that both dll with your changes and pdb files are copied to xConnect instance.
  2. In Visual Studio click Debug > Attach to Process and attach to w3wp.exe. See here for more info. You might consider using Visual Studio Extension that simplifies attaching to IIS processes.
  3. Add appropriate breakpoints to the merge handler in Visual Studio.
  4. Run xConnect code that is supposed to invoke the handler, e.g. submit a contact/interaction using xConnect client.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.