Debugger: write line number for catch clause declaration

This commit is contained in:
Natalia Ukhorskaya
2016-04-06 17:04:04 +03:00
parent 8e3ec5b7f0
commit 7a5ab93f9e
9 changed files with 44 additions and 4 deletions
@@ -0,0 +1,9 @@
LineBreakpoint created at stepOverCatchClause.kt:14
!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! stepOverCatchClause.StepOverCatchClauseKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
stepOverCatchClause.kt:14
stepOverCatchClause.kt:7
stepOverCatchClause.kt:8
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -8,11 +8,13 @@ stepOverTryCatchWithInline.kt:48
stepOverTryCatchWithInline.kt:17
stepOverTryCatchWithInline.kt:24
stepOverTryCatchWithInline.kt:25
stepOverTryCatchWithInline.kt:27
stepOverTryCatchWithInline.kt:28
stepOverTryCatchWithInline.kt:35
stepOverTryCatchWithInline.kt:36
stepOverTryCatchWithInline.kt:48
stepOverTryCatchWithInline.kt:36
stepOverTryCatchWithInline.kt:38
stepOverTryCatchWithInline.kt:39
stepOverTryCatchWithInline.kt:43
stepOverTryCatchWithInline.kt:8
@@ -0,0 +1,17 @@
package stepOverCatchClause
fun main(args: Array<String>) {
try {
bar()
}
catch(e: Exception) {
val a = e
}
}
fun bar() {
//Breakpoint!
throw IllegalStateException()
}
// STEP_OVER: 2
@@ -51,4 +51,4 @@ inline fun foo(f: () -> Int): Int {
fun test(i: Int) = 1
// STEP_OVER: 15
// STEP_OVER: 19