<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Debugger on Platform Goblin</title>
		<link>https://platformgoblin.com/tags/debugger/</link>
		<description>Recent content in Debugger on Platform Goblin</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>©2022-2026 Platform Goblin LLC</copyright>
		
		
			<lastBuildDate>Fri, 16 Oct 2026 18:35:37 -0700</lastBuildDate>
		
			<atom:link href="https://platformgoblin.com/tags/debugger/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Test Background Task in Xcode</title>
				<link>https://platformgoblin.com/snippets/test-background-task-in-xcode/</link>
				<pubDate>Fri, 16 Oct 2026 18:35:37 -0700</pubDate>
				<guid>https://platformgoblin.com/snippets/test-background-task-in-xcode/</guid>
				<description>&lt;p&gt;I am absolutely going to forget this (again) but if your app has a background task scheduled with &lt;code&gt;BGTaskScheduler&lt;/code&gt; you can manually trigger it by pausing the app in the Xcode debugger and running the debug command&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@&amp;#34;com.your.domain.task-id&amp;#34;]&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;When you continue the app it will trigger your background task.&lt;/p&gt;&#xA;&lt;p&gt;You have to do this on a real device since &lt;code&gt;BGTaskScheduler&lt;/code&gt; is not present on simulators.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
