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

  • you should publish dll related to project make sure pdb file should be publish if you are deploying manually Commented Jul 23, 2020 at 7:11

2 Answers 2


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.

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
    Commented May 30, 2018 at 19:43
  • Make sure you are deploying the Debug configuration and not the Release
    – Richard Seal
    Commented May 30, 2018 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... Commented May 31, 2018 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
    Commented May 31, 2018 at 7:30
  • You can use the Modules debug window to check whether your assembly has symbols loaded. If not, this could indicate a Release build or problem with your pdbs. Commented Jul 23, 2020 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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