Debugger: write line number for catch clause declaration
This commit is contained in:
@@ -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
|
||||
+1
-1
@@ -51,4 +51,4 @@ inline fun foo(f: () -> Int): Int {
|
||||
|
||||
fun test(i: Int) = 1
|
||||
|
||||
// STEP_OVER: 15
|
||||
// STEP_OVER: 19
|
||||
Reference in New Issue
Block a user