<div dir="ltr">Hi Hilaire,<div> if you download CuisUniversity (<a href="http://cuisuniversity.org">cuisuniversity.org</a>) and look for references to DenotativeObjectDebugger, you will see an example on how to do it.</div><div><br></div><div> I hope it helps!</div><div> Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 10, 2023 at 7:27 AM Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hi, <br>
    </p>
    <p>Kind of responding to myself. Of course I should capture the
      error use an on:do: message but the exception argument of the do:
      block does not offer the context of the error.</p>
    <p>Idea?<br>
    </p>
    <p></p>
    <div style="background:rgb(255,255,255);overflow:auto;width:auto;border-style:solid;border-color:gray;border-width:0.1em 0.1em 0.1em 0.8em;padding:0.2em 0.6em">
      <pre style="margin:0px;line-height:125%"><span style="color:rgb(0,102,187);font-weight:bold">executeSketch</span>
        <span style="color:rgb(0,112,32)">self</span> <span style="color:rgb(0,102,187);font-weight:bold">stopSketch</span>.
        <span style="color:rgb(153,102,51)">codeView</span> <span style="color:rgb(0,102,187);font-weight:bold">scroller</span> <span style="color:rgb(0,102,187);font-weight:bold">acceptContents</span>.
        <span style="color:rgb(0,112,32)">self</span> <span style="color:rgb(0,102,187);font-weight:bold">switchToPauseButton</span>.
        <span style="color:rgb(187,0,102);font-weight:bold">DrGeoSketch</span> <span style="color:rgb(0,102,187);font-weight:bold">when:</span> <span style="color:rgb(170,102,0)">#newSmalltalkSketch</span> <span style="color:rgb(0,102,187);font-weight:bold">send:</span> <span style="color:rgb(170,102,0)">#compiledSketch:</span> <span style="color:rgb(0,102,187);font-weight:bold">to:</span> <span style="color:rgb(0,112,32)">self</span>.
        <span style="color:rgb(153,102,51)">sketchProcess</span> <span style="color:rgb(51,51,51)">:=</span> [ <span style="color:rgb(51,51,51)">|</span> <span style="color:rgb(153,102,51)">t</span> <span style="color:rgb(0,102,187);font-weight:bold">|</span>
                <span style="color:rgb(153,102,51)">t</span> <span style="color:rgb(51,51,51)">:=</span> <span style="color:rgb(187,0,102);font-weight:bold">DateAndTime</span> <span style="color:rgb(0,102,187);font-weight:bold">now</span>.
                [<span style="color:rgb(187,0,102);font-weight:bold">Compiler</span> <span style="color:rgb(0,102,187);font-weight:bold">evaluate:</span> <span style="color:rgb(153,102,51)">model</span>] <span style="color:rgb(0,102,187);font-weight:bold">on:</span> <span style="color:rgb(187,0,102);font-weight:bold">Error</span> <span style="color:rgb(0,102,187);font-weight:bold">do:</span> [<span style="color:rgb(51,51,51)">:</span><span style="color:rgb(153,102,51)">exception</span> <span style="color:rgb(51,51,51)">|</span> 
                        <span style="color:rgb(153,102,51)">exception</span> <span style="color:rgb(0,102,187);font-weight:bold">inspect</span>.
                        <span style="background-color:rgb(255,240,240)">'Got an error ! '</span> <span style="color:rgb(0,102,187);font-weight:bold">print</span>].
                <span style="color:rgb(136,136,136)">" When we get there, sketch has been entirely executed, switch back to play button "</span>
                <span style="color:rgb(0,112,32)">self</span> <span style="color:rgb(0,102,187);font-weight:bold">switchToPlayButton</span>.
                <span style="color:rgb(187,0,102);font-weight:bold">Transcript</span> <span style="color:rgb(0,102,187);font-weight:bold">show:</span> <span style="color:rgb(187,0,102);font-weight:bold">DateAndTime</span> <span style="color:rgb(0,102,187);font-weight:bold">now</span> <span style="color:rgb(0,102,187);font-weight:bold">-</span> <span style="color:rgb(153,102,51)">t</span> ;<span style="color:rgb(0,102,187);font-weight:bold">cr</span>] <span style="color:rgb(0,102,187);font-weight:bold">newProcess</span>.
        <span style="color:rgb(153,102,51)">sketchProcess</span> 
                <span style="color:rgb(0,102,187);font-weight:bold">priority:</span> <span style="color:rgb(187,0,102);font-weight:bold">Processor</span> <span style="color:rgb(0,102,187);font-weight:bold">userSchedulingPriority</span> ;
                <span style="color:rgb(0,102,187);font-weight:bold">name:</span> <span style="background-color:rgb(255,240,240)">'[DrGeo] Smalltalk Sketch execution'</span>;
                <span style="color:rgb(0,102,187);font-weight:bold">resume</span>.
</pre>
    </div>
    <p><br>
    </p>
    <div>Le 10/12/2023 à 10:41, Hilaire
      Fernandes a écrit :<br>
    </div>
    <blockquote type="cite"><font size="4">How should I capture the debugger window to plug it in
        the DrGeo Smalltalk sketch editor view?</font></blockquote>
    <pre cols="72">-- 
GNU Dr. Geo
<a href="http://gnu.org/s/dr-geo/" target="_blank">http://gnu.org/s/dr-geo/</a>
<a href="http://gnu-drgeo.blogspot.com/" target="_blank">http://gnu-drgeo.blogspot.com/</a></pre>
  </div>

-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div>