Debugger: A dirty fix for setting breakpoints inside finally {} in case if exception is thrown from try {} (#KT-22654)
This commit is contained in:
@@ -1488,6 +1488,10 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
|
||||
}
|
||||
|
||||
if (tryCatchBlockEnd != null) {
|
||||
if (finallyBlockStackElement != null) {
|
||||
markLineNumber(finallyBlockStackElement.expression, true);
|
||||
}
|
||||
|
||||
v.goTo(tryCatchBlockEnd);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -16,4 +16,4 @@ fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
// 2 3 7 4 5 7 8 +10 11 15 12 13 15 10 17
|
||||
// 2 3 7 8 4 5 7 8 7 8 +10 11 15 16 12 13 15 16 15 10 17
|
||||
+1
-1
@@ -12,4 +12,4 @@ fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
// 2 3 5 6 +8 9 11 8 13
|
||||
// 2 3 5 6 5 6 +8 9 11 12 11 8 13
|
||||
Reference in New Issue
Block a user