CLOVIS
05/26/2023, 9:23 AMdata class Foo(
val a: Int,
val b: Int, // 3
)
fun bar(a: Int, b: Int) =
a + b // 4
fun main() {
val foo = Foo(1, 2)
// 1
bar( // 5
5,
foo.b, // 2
)
}
When the debugger is stopped at // 1
, using "step into" will lead you to the marked places in order. I don't understand why it jumps to // 3
. Is it because it steps into the generated getter? If so, is there a way to configure IntelliJ to skip trivial getters and setters (but still step into custom getters/setters)? It's very confusing in complex code to jump to class fields on every function call.Robert Williams
05/26/2023, 10:06 AMCLOVIS
05/26/2023, 1:46 PM