Go to your project's properties, then go to Debug
.
In the Start Action
section is a check box that reads Do not launch, but debug my code when it starts.
Check this.
Start debugging. Your app will not launch.
Open your app via the method you desire (such as by file protocol). The debugger will attach and you will be able to step into the OnActivated
section.