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:
Publish your dll's to your instance so that your breakpoints should load properly. Keep your profile in "Debug" mode and not in "Release"
- Your feature and foundation must be published properly to your instance.
- 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.
- In Visual Studio, select Debug / Attach to Process (or press CTRL+ALT+P).
- 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:
You will need to select the Show processes from all users
check box.
- 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.
-
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? Commented May 30, 2018 at 19:43
-
Make sure you are deploying the
Debug
configuration and not theRelease
– 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.– grgCommented 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