Debugger: wrong stepping through the loop with continue label
#KT-5776 Fixed #KT-5664 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
LineBreakpoint created at continueLabel.kt:5
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! continueLabel.ContinueLabelPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
continueLabel.kt:5
|
||||
continueLabel.kt:6
|
||||
continueLabel.kt:7
|
||||
continueLabel.kt:8
|
||||
continueLabel.kt:5
|
||||
continueLabel.kt:6
|
||||
continueLabel.kt:7
|
||||
continueLabel.kt:10
|
||||
continueLabel.kt:5
|
||||
continueLabel.kt:12
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at forLoop.kt:6
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! forLoop.ForLoopPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
forLoop.kt:6
|
||||
forLoop.kt:7
|
||||
forLoop.kt:8
|
||||
forLoop.kt:7
|
||||
forLoop.kt:8
|
||||
forLoop.kt:7
|
||||
forLoop.kt:10
|
||||
forLoop.kt:11
|
||||
forLoop.kt:12
|
||||
forLoop.kt:13
|
||||
forLoop.kt:11
|
||||
forLoop.kt:12
|
||||
forLoop.kt:13
|
||||
forLoop.kt:11
|
||||
forLoop.kt:15
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,15 @@
|
||||
package continueLabel
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
for(el in 0..1) {
|
||||
val a1 = 1
|
||||
if (el == 0) {
|
||||
continue
|
||||
}
|
||||
val a2 = 2
|
||||
}
|
||||
val a3 = 3
|
||||
}
|
||||
|
||||
// STEP_INTO: 9
|
||||
@@ -0,0 +1,18 @@
|
||||
package forLoop
|
||||
|
||||
// KT-5664 Wrong stepping through for loop
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
var x = 1
|
||||
for (i in 0..1) {
|
||||
x++
|
||||
}
|
||||
var y = 1
|
||||
for (i in 0..1) {
|
||||
y++
|
||||
val y1 = y
|
||||
}
|
||||
val z = 1
|
||||
}
|
||||
|
||||
// STEP_INTO: 14
|
||||
Reference in New Issue
Block a user