简体   繁体   中英

How to debug Windows Phone 8.1 app which was started by protocol association?

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.

  1. In Solutions Explorer , right click your project and select Properties .
  2. In 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM