help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Eval code in debugger


From: Gwenaël Casaccio
Subject: Re: [Help-smalltalk] Eval code in debugger
Date: Tue, 29 Oct 2013 10:05:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 24/10/2013 07:47, Holger Hans Peter Freyther wrote:
On Mon, Oct 21, 2013 at 10:17:33AM +0200, Gwenaël Casaccio wrote:
Hi,

The patch allows code evaluation while debugging and
allows to use the temps and the args name in the evaluated
code.
lovely! the debugger is getting more and more usable and showing
the power of Smalltalk/GST.

      inspectIt: object [
          <category: 'smalltalk event'>
- self focusedWidget inspectIt: object
+        codeWidget hasFocus ifFalse: [ ^ self focusedWidget inspectIt: object 
].
+        codeWidget hasSelection ifFalse: [ ^ self ].
+        (debugger eval: codeWidget selectedText) gtkInspect.
something is not right. E.g. when I don't have anything selected
in the code widget and no blinking cursor but the variable in
"variables" is selected and I press CTRL+I I would want the inspector
to popup on the variable but somehow I get an inspector with
Behavior.

Can you reproduce this? My example is the '1234' do: [:each | ]
again.

holger

Hi,

here is a new version of the patch the difference is that evaluated code is
done in an other process and without any references to the debugger
(the receiver of the closures is set to nil) otherwhise the exception handler
while doing a debuger class lookup will be nil.

Cheers,
Gwen

Attachment: 0001-DebugTools-MiniDebugger-and-GtkDebugger-can-eval-exp.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]