[Cuis-dev] Capturing Debugger window

Hernán Wilkinson hernan.wilkinson at 10pines.com
Mon Dec 11 04:38:35 PST 2023


Hi Hilaire,
 if you download CuisUniversity (cuisuniversity.org) and look for
references to DenotativeObjectDebugger, you will see an example on how to
do it.

 I hope it helps!
 Hernan.

On Sun, Dec 10, 2023 at 7:27 AM Hilaire Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Hi,
>
> 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.
>
> Idea?
>
> executeSketch
> 	self stopSketch.
> 	codeView scroller acceptContents.
> 	self switchToPauseButton.
> 	DrGeoSketch when: #newSmalltalkSketch send: #compiledSketch: to: self.
> 	sketchProcess := [ | t |
> 		t := DateAndTime now.
> 		[Compiler evaluate: model] on: Error do: [:exception |
> 			exception inspect.
> 			'Got an error ! ' print].
> 		" When we get there, sketch has been entirely executed, switch back to play button "
> 		self switchToPlayButton.
> 		Transcript show: DateAndTime now - t ;cr] newProcess.
> 	sketchProcess
> 		priority: Processor userSchedulingPriority ;
> 		name: '[DrGeo] Smalltalk Sketch execution';
> 		resume.
>
>
> Le 10/12/2023 à 10:41, Hilaire Fernandes a écrit :
>
> How should I capture the debugger window to plug it in the DrGeo Smalltalk
> sketch editor view?
>
> --
> GNU Dr. Geohttp://gnu.org/s/dr-geo/http://gnu-drgeo.blogspot.com/
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20231211/32a02b62/attachment.htm>


More information about the Cuis-dev mailing list