Search code examples
debuggingwindows-phone-8background-task

Debug TaskAgent in Windows Phone 8


I develop an app for Windows Phone 8 and use Task Agent. I need to debug code that used in Task Agent. I try to join the process in menu Debug - Join the process, but when I choose the right qualifier, the process list is empty. What am I doing wrong?


Solution

  • You cannot debug Background task agents the same way you debug normal windows phone projects. Here are some techniques used.

    http://developer.nokia.com/community/wiki/Background_Agents_Debugging_Tips_on_Windows_Phone

    I have used the ShellToast successfully to debug my agents. IMPORTANT: Remember to remove/comment all those code you add before deploying, or use #IFDEF statements.