TransWikia.com

How to debug Sitecore Helix Feature using Visual Studio 2017?

Sitecore Asked by grilosape on December 7, 2021

I’d like to debug a Sitecore Helix Feature using Visual Studio 2017.
Is it possible or just the Website Project?

2 Answers

Agree with Richard's Answer. Just keep few points in notice while debugging:

  1. Attach you process to correct managed pool enter image description here

  2. Publish your dll's to your instance so that your breakpoints should load properly. Keep your profile in "Debug" mode and not in "Release"

  3. Your feature and foundation must be published properly to your instance.
  4. Your controller rendering has correct details of your controller and action method and dll.

Answered by ravi kumar Mishra on December 7, 2021

Its perfectly possible. You just need to attach Visual Studio to your w3wp.exe process.

  1. In Visual Studio, select Debug / Attach to Process (or press CTRL+ALT+P).
  2. In the Attach to Process dialog box, find the program that you want to attach to from the Available Processes list. For this it will be one of the w3wp.exe processes:

enter image description here

You will need to select the Show processes from all users check box.

  1. In the Attach to box, click Select.

In the Select Code Type dialog box, click Debug these code types and select the types to debug.

Click OK.

Click Attach.

Ref: https://msdn.microsoft.com/en-us/library/3s68z0b3.aspx

Answered by Richard Seal on December 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP