Debugger: Fix step over in functions with default parameters (KT-14828)

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.
This commit is contained in:
Yan Zhulanow
2020-02-05 19:05:42 +09:00
parent d0f34624bd
commit 4244f05307
21 changed files with 357 additions and 19 deletions
@@ -0,0 +1,26 @@
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: 2
// STEP_OVER: 7