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.
21 lines
278 B
Kotlin
Vendored
21 lines
278 B
Kotlin
Vendored
package test
|
|
|
|
fun main(args: Array<String>) {
|
|
//Breakpoint!
|
|
call()
|
|
foo()
|
|
}
|
|
|
|
fun call(a: Int = def()) {
|
|
foo()
|
|
}
|
|
|
|
fun def(): Int {
|
|
return libFun() // 'Step over' causes debugger skipping call()
|
|
}
|
|
|
|
fun foo() {}
|
|
fun libFun() = 12
|
|
|
|
// STEP_INTO: 1
|
|
// STEP_OVER: 2 |