<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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><!-- HTML generated using hilite.me --></p>
    <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
      <pre style="margin: 0; line-height: 125%"><span
      style="color: #0066BB; font-weight: bold">executeSketch</span>
        <span style="color: #007020">self</span> <span
      style="color: #0066BB; font-weight: bold">stopSketch</span>.
        <span style="color: #996633">codeView</span> <span
      style="color: #0066BB; font-weight: bold">scroller</span> <span
      style="color: #0066BB; font-weight: bold">acceptContents</span>.
        <span style="color: #007020">self</span> <span
      style="color: #0066BB; font-weight: bold">switchToPauseButton</span>.
        <span style="color: #BB0066; font-weight: bold">DrGeoSketch</span> <span
      style="color: #0066BB; font-weight: bold">when:</span> <span
      style="color: #AA6600">#newSmalltalkSketch</span> <span
      style="color: #0066BB; font-weight: bold">send:</span> <span
      style="color: #AA6600">#compiledSketch:</span> <span
      style="color: #0066BB; font-weight: bold">to:</span> <span
      style="color: #007020">self</span>.
        <span style="color: #996633">sketchProcess</span> <span
      style="color: #333333">:=</span> [ <span style="color: #333333">|</span> <span
      style="color: #996633">t</span> <span
      style="color: #0066BB; font-weight: bold">|</span>
                <span style="color: #996633">t</span> <span style="color: #333333">:=</span> <span
      style="color: #BB0066; font-weight: bold">DateAndTime</span> <span
      style="color: #0066BB; font-weight: bold">now</span>.
                [<span style="color: #BB0066; font-weight: bold">Compiler</span> <span
      style="color: #0066BB; font-weight: bold">evaluate:</span> <span
      style="color: #996633">model</span>] <span
      style="color: #0066BB; font-weight: bold">on:</span> <span
      style="color: #BB0066; font-weight: bold">Error</span> <span
      style="color: #0066BB; font-weight: bold">do:</span> [<span
      style="color: #333333">:</span><span style="color: #996633">exception</span> <span
      style="color: #333333">|</span> 
                        <span style="color: #996633">exception</span> <span
      style="color: #0066BB; font-weight: bold">inspect</span>.
                        <span style="background-color: #fff0f0">'Got an error ! '</span> <span
      style="color: #0066BB; font-weight: bold">print</span>].
                <span style="color: #888888">" When we get there, sketch has been entirely executed, switch back to play button "</span>
                <span style="color: #007020">self</span> <span
      style="color: #0066BB; font-weight: bold">switchToPlayButton</span>.
                <span style="color: #BB0066; font-weight: bold">Transcript</span> <span
      style="color: #0066BB; font-weight: bold">show:</span> <span
      style="color: #BB0066; font-weight: bold">DateAndTime</span> <span
      style="color: #0066BB; font-weight: bold">now</span> <span
      style="color: #0066BB; font-weight: bold">-</span> <span
      style="color: #996633">t</span> ;<span
      style="color: #0066BB; font-weight: bold">cr</span>] <span
      style="color: #0066BB; font-weight: bold">newProcess</span>.
        <span style="color: #996633">sketchProcess</span> 
                <span style="color: #0066BB; font-weight: bold">priority:</span> <span
      style="color: #BB0066; font-weight: bold">Processor</span> <span
      style="color: #0066BB; font-weight: bold">userSchedulingPriority</span> ;
                <span style="color: #0066BB; font-weight: bold">name:</span> <span
      style="background-color: #fff0f0">'[DrGeo] Smalltalk Sketch execution'</span>;
                <span style="color: #0066BB; font-weight: bold">resume</span>.
</pre>
    </div>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 10/12/2023 à 10:41, Hilaire
      Fernandes a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:609064a8-ebd7-446b-9892-a72dcd1a8054@free.fr"><font
        size="4">How should I capture the debugger window to plug it in
        the DrGeo Smalltalk sketch editor view?</font></blockquote>
    <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/">http://gnu.org/s/dr-geo/</a>
<a class="moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/">http://gnu-drgeo.blogspot.com/</a></pre>
  </body>
</html>