Capture debugger window

Bug #2046077 reported by hilaire
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo
New
Undecided
Unassigned

Bug Description

In the Smalltalk sketch editor, capture the debugger window to plug it in the DrGeo Smalltalk sketch editor view.

Revision history for this message
hilaire (hilaire-fernandes) wrote :

Hack #1 to get the debugger. The context is lost though. The method wait for the process to terminate, which is subnominal.

executeSketch
 | errorFlag |
 self stopSketch.
 codeView scroller acceptContents.
 self switchToPauseButton.
 errorFlag := false.
 DrGeoSketch when: #newSmalltalkSketch send: #compiledSketch: to: self.
 sketchProcess := [ | t |
  t := DateAndTime now.
  [Compiler evaluate: model] on: Error do: [:exception | errorFlag := true. self debugWindowSketch ].
  " 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.
 [sketchProcess isTerminated] whileFalse.
 errorFlag ifTrue: [ self debugSketch ]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.