My app needs a protocol activation, I implemented it by following official guideline.
Check activation Kind at OnActivated and initialize a new frame and window if protocol detected.
When app starts and attaches to debugger by F5 I see a main page, the next I press back button and click to link at email. The app starts correctly and show me a required page.
But the app will show splash screen and close itself if I kill app by process manager before click a link.
So I should debug app to localize bug, but the debugger detaches when the app has been killed.
Please help me to find a way to debug it!
To debug such scenarios, there is a special option in Visual Studio.
Solutions Explorer
, right click your project and select
Properties
.Debug
tab, check the "Do not launch, but debug my code when it starts"
checkbox.Now debug by pressing F5. The app will deploy and debugger will attach, but the app will not launch. Now click the mail link. At this point your app should start due to protocol activation and debugger will work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With