[Cuis-dev] Context in Exception

Juan Vuletich juan at cuis.st
Sun Apr 28 09:45:11 PDT 2024


On 4/28/2024 10:45 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Correction.
>
> Le 28/04/2024 à 15:16, Hilaire Fernandes a écrit :
>>
>> I see. I *would* have difficulties to find out.
>>

Yes. The debugger is not simple. It is quite complex.

>> However I have two difficulties with your fix.
>>
>>     * I need the GUI to be still actionnable during the execution of
>>       the script. Some sketch may take time to execute, so I need to
>>       be able to pause/stop it from the Sketch editor toolbar.  I
>>       observe that withen recent image I need to execute the script
>>       at priority "Processor userSchedulingPriority - 1"
>>     * When script is executed at priority "*Processor
>>       userSchedulingPriority +1*", your test isSuspended always
>>       return false, the debugger has *no* chance to be plugged when
>>       needed.
>>

I see. I guess the debugger must be plugged in later. Maybe inside your 
exception block, before suspending the process, call #whenUIinSafeState: 
with the debugger plugging stuff. (I have not actually tried this, it is 
just an idea).

> -- 
> GNU Dr. Geo
> http://gnu.org/s/dr-geo/
> http://gnu-drgeo.blogspot.com/
-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240428/423e1cf3/attachment.htm>


More information about the Cuis-dev mailing list