This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Eclipse debugger variable list bullet icon decorators

3 replies
Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.

hi,

i'm trying to figure it out but have no idea...

in the debugger of the eclipse plug-in, in the variables list, what
is the meaning of an entry that has a tiny "F" in the top-right
corner of its bullet icon. like i have

(L) root
*F capacity 20
* children 2
* id 0
*F id -1

do i need to be worried that there are two entries (with different
values) for field 'id' in this case? what does the 'F' stand for?

thanks, -sciss-

Robert Kosara
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.
Re: Eclipse debugger variable list bullet icon decorators
Final? is capacity a val?

On Wed, Jan 14, 2009 at 7:25 AM, Sciss <contact [at] sciss [dot] de> wrote:
hi,

i'm trying to figure it out but have no idea...

in the debugger of the eclipse plug-in, in the variables list, what is the meaning of an entry that has a tiny "F" in the top-right corner of its bullet icon. like i have

(L) root
       *F  capacity            20
       *    children            2
       *    id                       0
       *F  id                       -1

do i need to be worried that there are two entries (with different values) for field 'id' in this case? what does the 'F' stand for?

thanks, -sciss-


Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.
Re: Eclipse debugger variable list bullet icon decorators

indeed i had to be worried, just found a severe bug in my code. like
i did

Node( private var id: ID ) {
def getID = id
def setID( newID: ID ) { id = newID }
}

Index( id: ID ) extends Node( id ) {
def chooseSubtree( pathBuffer: scala.collection.mutable.Stack[ ID ]) {
pathBuffer.push( id )
// ...
}
}

so i was using in 'chooseSubtree' the old value of 'id' that was
handed in the _constructor_.... so switching that to getID would fix
it.

but i think that
- the compiler would warn me about those variable shadowings
- this proofs once more that the weird concept of scala's
constructors has deficiencies...

also... i don't understand why the 'id' from Index( id: ID ) is _at
all_ visible in a method and not just the constructor... am i doing
something wrong here... i mean there must be a way that 'id' is not
visible at all in chooseSubtree, or not?

thanks, -sciss-

Am 14.01.2009 um 13:25 schrieb Sciss:

> hi,
>
> i'm trying to figure it out but have no idea...
>
> in the debugger of the eclipse plug-in, in the variables list, what
> is the meaning of an entry that has a tiny "F" in the top-right
> corner of its bullet icon. like i have
>
> (L) root
> *F capacity 20
> * children 2
> * id 0
> *F id -1
>
> do i need to be worried that there are two entries (with different
> values) for field 'id' in this case? what does the 'F' stand for?
>
> thanks, -sciss-
>

Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.
Re: Eclipse debugger variable list bullet icon decorators

ah... ok, yes capacity is a val. see my other posting: i accidentally
got two entries for 'id', one is the 'final' constructor argument,
the other is a variable in the superclass.

ciao, -sciss-

Am 14.01.2009 um 13:34 schrieb Robert Kosara:

> Final? is capacity a val?
>
> On Wed, Jan 14, 2009 at 7:25 AM, Sciss wrote:
> hi,
>
> i'm trying to figure it out but have no idea...
>
> in the debugger of the eclipse plug-in, in the variables list, what
> is the meaning of an entry that has a tiny "F" in the top-right
> corner of its bullet icon. like i have
>
> (L) root
> *F capacity 20
> * children 2
> * id 0
> *F id -1
>
> do i need to be worried that there are two entries (with different
> values) for field 'id' in this case? what does the 'F' stand for?
>
> thanks, -sciss-
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland