Status: Accepted
Owner:
[hidden email]
Labels: Milestone-1.4
New issue 4410 by
[hidden email]: CompiledMethod >>
#valueWithReceiver:arguments: instead of Object >> #withArgs:executeMethod:
http://code.google.com/p/pharo/issues/detail?id=4410Use CompiledMethod >> #valueWithReceiver:arguments: instead of Object >>
#withArgs:executeMethod: for evaluating a method.
=============== Diff against Morphic-ul.545 ===============
Item was changed:
----- Method: TextEditor>>debug:receiver:in: (in category 'do-its') -----
debug: aCompiledMethod receiver: anObject in: evalContext
| guineaPig debugger context |
guineaPig := [
+ aCompiledMethod
+ valueWithReceiver: anObject
+ arguments: (evalContext ifNil: [ #() ] ifNotNil: [
{ evalContext } ]) ] newProcess.
- anObject "Use primitive 188, because primitive 189 escapes
the debugger somehow."
- withArgs: (evalContext ifNil: [ #() ] ifNotNil: [ {
evalContext } ])
- executeMethod: aCompiledMethod ] newProcess.
context := guineaPig suspendedContext.
debugger := Debugger new
process: guineaPig
controller: nil
context: context.
debugger openFullNoSuspendLabel: 'Debug it'.
[ debugger interruptedContext method == aCompiledMethod ]
whileFalse: [ debugger send ]!
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker