Debugger: check that label for marked object is a valid java identifier (KT-12651)

#KT-12651 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-07-15 16:12:06 +03:00
committed by Nikolay Krasko
parent 5ea74ed562
commit 3cbe28095b
5 changed files with 39 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
LineBreakpoint created at lIdentifier.kt:10
!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! lIdentifier.LIdentifierKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
lIdentifier.kt:10
Compile bytecode for a
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,20 @@
package lIdentifier
fun main(args: Array<String>) {
val a = 1
val b = 1
val c = 1
val d = 1
val e = 1
//Breakpoint!
val f = 1
}
// DEBUG_LABEL: a = 0
// DEBUG_LABEL: b = <no_name>
// DEBUG_LABEL: c = for
// DEBUG_LABEL: d = *
// DEBUG_LABEL: e = e-e
// EXPRESSION: a
// RESULT: 1: I