How to debug a Windows Phone 8.1 application that was launched by the protocol association?

My application needs to activate the protocol, I implemented it following the official guidelines.

Check the activation of the view on OnActivated and initialize a new frame and window if a protocol is detected.

When the application starts and joins the debugger using F5, I see the main page, then I click the "Back" button and click the link via email. The application starts correctly and shows me the page you need.

But the application will show a splash screen and close if I kill the application with the process manager before clicking the link.

So, I have to debug the application to localize the error, but the debugger detaches when the application was killed.

Please help me find a way to debug it!

+4
source share
1 answer

To debug such scenarios, Visual Studio has a special option.

  • In Solutions Explorerright click your project and select Properties.
  • In the bookmark Debug, check the box "Do not launch, but debug my code when it starts".

enter image description here

Now debug by pressing F5. The application will be deployed and the debugger will connect, but the application does not start. Now click the link in the mail. At this point, your application should start due to protocol activation, and the debugger will work as expected.

+7
source

Source: https://habr.com/ru/post/1584317/


All Articles