4244f05307
Adds a synthetic line number just before the original function call. The new line number is recognized by the debugger which replaces the 'step over' action with 'step into' and stops.
26 lines
362 B
Kotlin
Vendored
26 lines
362 B
Kotlin
Vendored
package test
|
|
|
|
fun main() {
|
|
val foo = FooImpl()
|
|
//Breakpoint!
|
|
foo.call()
|
|
foo.foo()
|
|
}
|
|
|
|
interface Foo {
|
|
fun call(a: Int = def()) {
|
|
foo()
|
|
}
|
|
|
|
fun def(): Int {
|
|
return libFun() // 'Step over' causes debugger skipping call()
|
|
}
|
|
|
|
fun foo() {}
|
|
fun libFun() = 12
|
|
}
|
|
|
|
class FooImpl : Foo
|
|
|
|
// STEP_INTO: 1
|
|
// STEP_OVER: 2 |