#understanding intelliJ debugger
1 messages · Page 1 of 1 (latest)
<@&987246527741304832> please have a look, thanks.
and each drop down has child drop down things
i just want to know the value of the variable
but it has so many drop down things , i dont understand these , what are these?
your variable got a specific type and that type has multiple fields in the class, each entry is simply a field of some class
for example:
class Computer {
Memory memory;
CPU cpu;
// ...
}
and then imagine you watch a variable of type computer:
Computer myComputer = ...;
I will look like this:
- myComputer
- memory
... (fields of memory variable)
- cpu
... (fields of cpu variable)
thing is, that variable isnt just a string or an int
its a complex class consisting of multiple fields who have fields themselves and so on
so it shows u all of that
It's its fields
oh i see!
that makes sense
so i guess i dont need to pay attention to all the fields and subfields ?
only the stuff you are interested in
and that depends on the context of why you debug
i want to see the value of the variable
here i see that there is a field which is labelled "value"
is this the value?
but then what is the first = mean?
like in the first line
is this the value?
or is this the value?
you need to clarify
"value" of the variable
what do you even mean
you always talk about "value"
if your variables holds some type then the value is either null or an instance of that type or subtype
so value of variable is whatever assigned to it , right?
because thats the definition of the class
it got a field
no idea why
did you create that class?
its just unlucky and adds to confusion here
OH , thats smart!
i should look into the definition of class
no its a library (mibble)
its basically just:
class ... {
ObjectIdentifierValue value;
}
and thus its displayed as "value"