Mantis - Squeak
Viewing Issue Advanced Details
6660 Tools minor always 09-04-07 08:30 04-09-09 18:13
Dionisiy  
 
normal  
closed 3.10  
fixed  
none    
none 3.10  
0006660: "Through" button in Debugger
"Through" button in Debugger does not work correct for expressions like:

 [:a | a + 2] valueWithArguments: #(4 ).

this block is executed.

But expression:

 [:a | a + 2] value: 4.

works ok - block will start to debug.

I found reason in

ContextPart>>doPrimitive: primitiveIndex method: meth receiver: receiver args: argument

It checks primitive index for method under debug and choose how it must be performed.
But index 82 (#valueWithArguments primitive) is absent.
 FixForDebugBlockValueWithArguments.st [^] (2,519 bytes) 09-04-07 08:30

Notes
(0011092)
edgardec   
09-04-07 11:24   
Dionisiy:

If you add some test, I put into updates
(0011093)
Dionisiy   
09-04-07 12:11   
manual test for this bug:
1). debug expression "[:a | a + 2] valueWithArguments: #(4 )" (in workspace)
2). press "through" button in debugger
3). now "debug cursor" go into block "[:a | a + 2]". But when bug doesn't fix block just evaluated
(0012821)
KenCausey   
12-01-08 23:06   
Harvested as update 7154 and released with Squeak 3.10.