Reputation: 12923
Is it possible to debug FeatureActivated?
I am doing:
This doesn't work because the app has already been deployed and activated.
How do I tell it to insta-stop and let me walk through the activation process.
Upvotes: 1
Views: 2126
Reputation: 46
Yes it is.
Upvotes: 1
Reputation: 19
You can add the line to your code:
System.Diagnostics.Debugger.Launch();
Once the feature is activated, you will see Debug popup dialog and connect to the process.
Upvotes: 1
Reputation: 570
deploy >> set break point >> attach process to debugger then goto site action >> site settings >> manager site features >> deactivate feature and then activate it again.
Upvotes: 1