Evaluate expression: evaluate block of code (CODE_BLOCK mode)

This commit is contained in:
Natalia Ukhorskaya
2014-05-07 12:25:11 +04:00
parent 0677075335
commit 511d270032
7 changed files with 65 additions and 31 deletions
@@ -1,7 +1,7 @@
LineBreakpoint created at collections.kt:5
LineBreakpoint created at collections.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!;!RT_JAR! collections.CollectionsPackage
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
collections.kt:4
collections.kt:5
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -1,6 +1,7 @@
package collections
fun main(args: Array<String>) {
val ar = intArray(1, 2, 100, 200)
//Breakpoint!
args.size
}
@@ -0,0 +1,5 @@
ar.map { if (it > 50) "big" else "small" }
.filter { it == "small" }
.size
// RESULT: 2: I
@@ -0,0 +1,4 @@
val a = 1
a + args.size
// RESULT: 1: I