Generate line numbers for function call parameters
Before this fix line numbers for function call arguments were not generated, so if argument was on another line than function call it was impossible to stop on argument line during debugging. Now line number for each argument is generated if necessary (another line than function call line). #KT-17144 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at kt17144.kt:9
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
kt17144.kt:9
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
foo
|
||||
@@ -0,0 +1,18 @@
|
||||
package kt17144
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = true
|
||||
1 + when (a) {
|
||||
true -> {
|
||||
println("foo")
|
||||
//Breakpoint!
|
||||
1
|
||||
}
|
||||
else -> {
|
||||
println("bar")
|
||||
2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//RESUME: 1
|
||||
@@ -1088,6 +1088,12 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
|
||||
doCustomTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt17144.kt")
|
||||
public void testKt17144() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/custom/kt17144.kt");
|
||||
doCustomTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt17295.kt")
|
||||
public void testKt17295() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/debugger/tinyApp/src/stepping/custom/kt17295.kt");
|
||||
|
||||
Reference in New Issue
Block a user