With Windows Phone 7 apps I often used ScheduledActionService.LaunchForTest to make background agents run quickly when debugging so I didn't need to wait 15 minutes before they would fire.
With WinRT you can now trigger the Background Task directly from Visual Studio. To do so:
- Bring up the Debug Location toolbar. Right click somewhere in an empty toolbar if you can't find it.
- Trigger the code that registers the background task.
- Click the dropdown next to suspend and select the class that the background task runs.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm-bTv1hidefJYvro3myV3enoJETz7V0F0bxQDUR7gd8w1Z-c9XQumHRTscXykhMJLqMKMpSLqsIxKOstmiHB2QYBtT_MZpw6DjcphEZj8f3c_8Nmo4iA6CHcDAa3S3QQtn5cjFHj_Rdh5/s400/DebugBackgroundTask.png)
See also: