Minor: get line start without whitespaces in KotlinExtraVariablesProvider

#KT-10183 Fxied
This commit is contained in:
Natalia Ukhorskaya
2015-11-27 14:55:02 +03:00
parent 0d486e1cfc
commit d2ef7b0ae0
4 changed files with 48 additions and 4 deletions
@@ -0,0 +1,24 @@
LineBreakpoint created at evFunctionDeclaration.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 !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! evFunctionDeclaration.EvFunctionDeclarationKt
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
evFunctionDeclaration.kt:5
package evFunctionDeclaration
class A(val a: Int) {
//Breakpoint!
fun foo() = a
}
fun main(args: Array<String>) {
A(1).foo()
}
// PRINT_FRAME
Compile bytecode for a
frame = foo():5, A {evFunctionDeclaration}
this = this = {evFunctionDeclaration.A@uniqueID}
field = a: int = 1 (sp = evFunctionDeclaration.kt, 3)
extra = a
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0