<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Debugging_Taskman_Tasks</id>
	<title>Debugging Taskman Tasks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Debugging_Taskman_Tasks"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Debugging_Taskman_Tasks&amp;action=history"/>
	<updated>2026-05-02T14:56:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=Debugging_Taskman_Tasks&amp;diff=15775&amp;oldid=prev</id>
		<title>Shabiel: Created page with &quot;== Background == The reason you would want to do this is that Taskman tasks are usually done in the background; so debugging them is difficult. In particular, you cannot use t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Debugging_Taskman_Tasks&amp;diff=15775&amp;oldid=prev"/>
		<updated>2013-05-08T18:39:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Background == The reason you would want to do this is that Taskman tasks are usually done in the background; so debugging them is difficult. In particular, you cannot use t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Background ==&lt;br /&gt;
The reason you would want to do this is that Taskman tasks are usually done in the background; so debugging them is difficult. In particular, you cannot use the debugger with them as they are not running in the foreground. This is a guide to help you run a task in the Foreground. Many thanks to the main Taskman programmer, Rick Marshall, for the directions. Questions? Hardhats google group.&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
# Place Taskman in Wait State (XUP -&amp;gt; XUTM WAIT)&lt;br /&gt;
# Invoke the code that schedules the task. The task will show up in ^%ZTSK&lt;br /&gt;
# Find your task in ^%ZTSK just to confirm its existence. It may be usually the last one; unless you are on a busy system.&lt;br /&gt;
# Put a breakpoint using ZBREAK on the code you want to debug&lt;br /&gt;
# Kill ^%ZTSCH(&amp;quot;WAIT&amp;quot;,&amp;quot;MGR&amp;quot;). This allows the Manager to move the task to the job list.&lt;br /&gt;
# Set ^%ZTSCH(&amp;quot;WAIT&amp;quot;,&amp;quot;MGR&amp;quot;)=$H. This stops the Manager again.&lt;br /&gt;
# Kill ^%ZTSCH(&amp;quot;STOP&amp;quot;). This lifts the ban on sub-managers.&lt;br /&gt;
# Run ^%ZTMS. It will break at the breakpoint. You put on. Now you are debugging the task in the foreground.&lt;br /&gt;
&lt;br /&gt;
A tiny warning: Taskman frequently opens a device prior to running a task. If that&amp;#039;s so, make sure your $ZSTEP is appropriate so that it switches between the current $IO and $P. GT.M will warn you if your output is going elsewhere.&lt;/div&gt;</summary>
		<author><name>Shabiel</name></author>
	</entry>
</feed>