0

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

0

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.
1

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

  • Hi Richard, I did and I have a break-point inside my Feature Project ->Controller but It never stops there. Am I doing something wrong? – grilosape May 30 '18 at 19:43
  • Make sure you are deploying the Debug configuration and not the Release – Richard Seal May 30 '18 at 19:44
  • Also small trick - Click on "Process" column in screenshot above which will change order of processes (making it descending) and w3wp will be up ;) So you don't need to scroll all the way down... – Peter Procházka May 31 '18 at 4:46
  • Or you can use Visual Studio extension that adds shortcuts to Tools menu: marketplace.visualstudio.com/…. Then can take it a step further and assign a keyboard shortcut. – grg May 31 '18 at 7:30

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.