Debugger questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Debugger questions

Stephane Ducasse-3
Hi 

In the code below I want to the value of (currentNames includes: v)
If I remember correctly in the past I could position my cursor and say run up to caret. 
But I cannot find it. 


valuesOnlyBy: aRowKey
| valueNames |
valueNames := self valueNamesOf: aRowKey.
(self rowKeysExcept: aRowKey)
do: [ :eachRowName | 
| currentNames |
self halt.
currentNames := self valueNamesOf: eachRowName.
valueNames
do: [ :v | 
(currentNames includes: v)
ifTrue: [ valueNames remove: v ].
valueNames isEmpty
ifTrue: [ ^ #() ] ] ].
^ valueNames

BTW Does anybody understand what through is doing and how to use it?
I do not understand the fly by help :((((((((((((((((
Nor when I use it. 

Stef



Reply | Threaded
Open this post in threaded view
|

Re: Debugger questions

abergel
"Run to here"


-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 25, 2017, at 4:15 PM, Stephane Ducasse <[hidden email]> wrote:

Hi 

In the code below I want to the value of (currentNames includes: v)
If I remember correctly in the past I could position my cursor and say run up to caret. 
But I cannot find it. 


valuesOnlyBy: aRowKey
| valueNames |
valueNames := self valueNamesOf: aRowKey.
(self rowKeysExcept: aRowKey)
do: [ :eachRowName | 
| currentNames |
self halt.
currentNames := self valueNamesOf: eachRowName.
valueNames
do: [ :v | 
(currentNames includes: v)
ifTrue: [ valueNames remove: v ].
valueNames isEmpty
ifTrue: [ ^ #() ] ] ].
^ valueNames

BTW Does anybody understand what through is doing and how to use it?
I do not understand the fly by help :((((((((((((((((
Nor when I use it. 

Stef




Reply | Threaded
Open this post in threaded view
|

Re: Debugger questions

Stephane Ducasse-3
Tx Alex!
I find the place of the operations a bit confusing

On Thu, May 25, 2017 at 10:22 PM, Alexandre Bergel <[hidden email]> wrote:
"Run to here"


-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On May 25, 2017, at 4:15 PM, Stephane Ducasse <[hidden email]> wrote:

Hi 

In the code below I want to the value of (currentNames includes: v)
If I remember correctly in the past I could position my cursor and say run up to caret. 
But I cannot find it. 


valuesOnlyBy: aRowKey
| valueNames |
valueNames := self valueNamesOf: aRowKey.
(self rowKeysExcept: aRowKey)
do: [ :eachRowName | 
| currentNames |
self halt.
currentNames := self valueNamesOf: eachRowName.
valueNames
do: [ :v | 
(currentNames includes: v)
ifTrue: [ valueNames remove: v ].
valueNames isEmpty
ifTrue: [ ^ #() ] ] ].
^ valueNames

BTW Does anybody understand what through is doing and how to use it?
I do not understand the fly by help :((((((((((((((((
Nor when I use it. 

Stef