문제

I'm using SharePoint 2013, VS 2015, I want to Debug my Feature Activated Receiver which is WebApplication Scoped.

When I attach w3p or OWSTIMER processes the Feature doesn't show up in Central Administration. It seems like it doesn't even deploy.

When I don't attach the processes it does not stop at Breakpoints. I also tried to set Project properties

Active Deployment Configuration = No Activation

Can anyone help me with debugging FeatureReceiver in WebApplication Scope?

도움이 되었습니까?

해결책

Here is a workaround for your reference, insert below code to your feature receiver.

System.Diagnostics.Debugger.Launch();

enter image description here

Referenced thread:

http://www.roberthiskey.com/2012/06/debugging-farm-and-web-application.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top