<p>Hi Sue, </p>
<div>I believe you can set instance-level breakpoints or definition-level breakpoints which are valid for all instances of that definition. The path you have described sets an instance breakpoint.</div>
<div>I only found the transaction last month (and there doesn&#39;t seem to be any documentation on it at all) and only used definition breakpoints that I set before kicking off the workflows, I didn&#39;t think about setting breakpoints in errored instances like you describe?</div>

<p>They did indeed make the workflow stop - in the tech log on the Step History tab you get a message saying that the breakpoint has been reached (technically speaking, the workflow instance gets set to this status - in table SWP_HEADER, field TECH_STATE there is now a value 06 for breakpoint reached).</p>

<p>However, we had problems restarting the workflows that had reached their breakpoints. You do this from SWF_DEBUG and it worked a few times, but the whole thing was too buggy to play around with it&nbsp;properly (hence the OSS). A bit of a struggle like you say. </p>

<p>It&#39;s a shame SAP doesn&#39;t intend to continue it though, it would be nice to be able to debug task methods without having to change background tasks to dialog, etc.</p>
<p>Regards, <br>Gavin<br>&nbsp;</p><br><br>
<div><span class="gmail_quote">On 08/01/2009, <b class="gmail_sendername">Keohan, Susan</b> &lt;<a href="mailto:keohan@ll.mit.edu">keohan@ll.mit.edu</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 11pt; COLOR: black">Hi Gavin,</span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 11pt; COLOR: black">I have been struggling with just how useful this transaction is… I have tried to set the breakpoints from within the workflow log (change&gt; Set breakpoint) when a workflow goes into error. &nbsp;But you say you have used it?&nbsp; Can you share some tips – even if this is not supported?<br>
<br>Thanks,<br>Sue</span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 11pt; COLOR: black">&nbsp;</span></font></p>
<div>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">----</span></font><font color="black"><span style="COLOR: black"></span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">Susan R. Keohan</span></font><font color="black"><span style="COLOR: black"></span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">SAP Workflow Specialist</span></font><font color="black"><span style="COLOR: black"></span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">Enterprise</span></font><font color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black"> Applications</span></font><font color="black"><span style="COLOR: black"></span></font></p>

<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">Information Services Department</span></font><font color="black"><span style="COLOR: black"></span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">MIT Lincoln Laboratory</span></font><font color="black"><span style="COLOR: black"></span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">244 Wood Street</span></font><font color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">, LI-200</span></font><font color="black"><span style="COLOR: black"></span></font></p>

<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">Lexington</span></font><font color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">, MA</span></font><font color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">. 02420</span></font><font color="black"><span style="COLOR: black"></span></font></p>

<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black">781-981-3561</span></font><font color="black"><span style="COLOR: black"></span></font></p>
<p><font face="Times New Roman" color="black" size="2"><span style="FONT-SIZE: 10pt; COLOR: black"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:keohan@LL.MIT.EDU" target="_blank">keohan@LL.MIT.EDU</a></span></font><font color="black"><span style="COLOR: black"></span></font></p>

<p><font face="Times New Roman" color="black" size="3"><span style="FONT-SIZE: 12pt; COLOR: black">&nbsp;</span></font></p></div>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a>] <b><span style="FONT-WEIGHT: bold">On Behalf Of </span></b>Gavin Mooney<br>
<b><span style="FONT-WEIGHT: bold">Sent:</span></b> Wednesday, January 07, 2009 7:33 PM<br><b><span style="FONT-WEIGHT: bold">To:</span></b> SAP Workflow Users&#39; Group<br><b><span style="FONT-WEIGHT: bold">Subject:</span></b> Anyone using transaction SWF_DEBUG?</span></font></p>
</div>
<div><span class="e" id="q_11eb6a48ee6c89d1_1">
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">&nbsp;</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Hi everyone, </span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Has anyone used transaction SWF_DEBUG? I was using it for some unit testing last month and once I got used to it I found it quite useful. </span></font></p>

<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">However, I found a bug when the breakpoint is set in a sub workflow and reported it on OSS, and just had the following response. I&#39;d be interested to know if other people have already heard that the transaction was a &quot;mistake&quot; - especially as we have some folks from SAP in the WUG who might be able to shed some light. </span></font></p>

<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I personally was disappointed to hear that it is not supported. </span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Regards, <br>Gavin</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Dear Customer,</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">sorry for the delay. Due to public holidays today is the first day<br>all colleagues are available.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Unfortunately I&#39;ve bad news. The transaction SWF_DEBUG was delivered<br>but is not released for customer. The development of a workflow debuggerwas stopped due to other projects with higher priority and so the<br>
debugger was not finished. It was a mistake to deliver it. I&#39;ve<br>discussed it with my development manager but we are not able to<br>support it. Sorry for that. Please do not use SWF_DEBUG.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Best regards,</span></font></p></span></div></div></div><br>_______________________________________________<br>SAP-WUG mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br></blockquote></div><br>