<div dir="ltr">Well you can call a method with a specific selector name and use the [break selector] feature in the simulator. Alternatively you call a specific primitive and put a halt in it in the simulator.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 3:45 PM, Ben Coman <span dir="ltr">&lt;<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Is their some method I can call in the Image to cause the simulator to<br>
break into a debugger?  I want to do this right before the end block<br>
bracket, so I can trace the termination of a forked block without<br>
needing to trace over the block&#39;s statements.<br>
<br>
cheers -ben<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, May 31, 2016 at 1:27 AM, tim Rowledge &lt;<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;&gt; On 30-05-2016, at 10:09 AM, Ben Coman &lt;<a href="mailto:btc@openinworld.com">btc@openinworld.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, May 30, 2016 at 11:35 PM, Clément Bera &lt;<a href="mailto:bera.clement@gmail.com">bera.clement@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I did a post out of this thread:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/" rel="noreferrer" target="_blank">https://clementbera.wordpress.com/2016/05/30/simulating-the-cog-vm/</a><br>
&gt;&gt;<br>
&gt;&gt; Nice article Clement, thanks.<br>
&gt;&gt; One thing though, I can&#39;t think what the &quot;dis&quot; means in genAndDis: ?<br>
&gt;<br>
&gt; Ooh, ooh - I can answer that one! &quot;generate and disassemble” as in generate the code and then disassemble it and display the nicely formatted string result so you can see where it all went horribly wrong.<br>
&gt;<br>
&gt;<br>
&gt; tim<br>
&gt; --<br>
&gt; tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
&gt; The less time planning, the more time programming.<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>