Proper generate interval for catch block variable; Fix for KT-15646: InconsistentDebugInfoException when stepping over throw

#KT-15646 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-01-18 14:36:27 +01:00
parent 4ab6b6954d
commit e1bec0df2e
5 changed files with 49 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
LineBreakpoint created at catchVariable.kt:9
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! catchVariable.CatchVariableKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
catchVariable.kt:9
package catchVariable
fun main(args: Array<String>) {
try {
throw Exception()
}
//Breakpoint!
catch (e: Exception) {
}
}
// PRINT_FRAME
frame = main:9, CatchVariableKt {catchVariable}
local = args: java.lang.String[] = {java.lang.String[0]@uniqueID} (sp = catchVariable.kt, 3)
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0