Unable to set value of variable in debugger


#1

While debugging a trivial Android application, the trivial “HelloWorld” application with Kotlin support, I am unable to change the value of a variable in the debugger via either the F2 “Set value…” short cut or the “Evaluate Expression…” window.

The latter gives the following result:
“Assignments are not expressions, and only expressions are allowed in this context”

I have simply added an integer variable with in the MainActivity class and logged its value.

From reading other issues I have added to the “Help|Debug Log Settings…” I can not upload the idea.log file here. Forgive me for including it below.

I have tried to switch to the 1.2.40_EAP, but as I am new to this environment I am not 100% certain that I have done that correctly. If there are other logs, etc I can attach or send please let me know.

thanks,
bfp

2018-03-31 22:04:43,294 [d thread 8] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2018-03-31 22:04:43,295 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Loading Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files)
2018-03-31 22:04:43,298 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 source files
2018-03-31 22:04:43,304 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 unused headers
2018-03-31 22:04:43,305 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2018-03-31 22:04:43,306 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0)
2018-03-31 22:04:43,306 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2018-03-31 22:04:43,994 [d thread 3] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2018-03-31 22:04:50,581 [J pool 1/7] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestCompatibleScreens
2018-03-31 22:04:50,581 [J pool 1/7] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestSupportsInput
2018-03-31 22:05:00,289 [d thread 3] INFO - ools.idea.fd.InstantRunBuilder - BuildCause: NO_DEVICE, BuildMode: FULL
2018-03-31 22:05:00,346 [e-1024-b01] INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [:app:assembleDebug]
2018-03-31 22:05:00,351 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: BUILD_EXECUTOR_CREATED
2018-03-31 22:05:00,357 [d thread 1] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /home/brian/android-studio/jre
2018-03-31 22:05:00,404 [st Monitor] INFO - id.tools.idea.ddms.DevicePanel - Device connected: emulator-5554
2018-03-31 22:05:00,432 [d thread 1] INFO - oject.common.GradleInitScripts - init script file sync.local.repo contents “allprojects {\n buildscript {\n repositories {\n maven { url ‘/home/brian/android-studio/gradle/m2repository’}\n }\n }\n repositories {\n maven { url ‘/home/brian/android-studio/gradle/m2repository’}\n }\n}\n”
2018-03-31 22:05:00,434 [d thread 1] INFO - ild.invoker.GradleBuildInvoker - Build command line options: [–configure-on-demand, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.build.api=27, -Pandroid.injected.build.density=420dpi, -Pandroid.injected.build.abi=x86, -Pandroid.injected.restrict.variant.name=debug, -Pandroid.injected.restrict.variant.project=:app, -Pandroid.optional.compilation=INSTANT_DEV,FULL_APK, -Pandroid.injected.coldswap.mode=MULTIAPK, --no-build-cache, --init-script, /tmp/sync.local.repo.gradle]
2018-03-31 22:05:00,479 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: BUILD_STARTED
2018-03-31 22:05:00,479 [e-1024-b01] INFO - idea.project.IndexingSuspender - Starting batch update for project: Project ‘/home/brian/AndroidStudioProjects/HelloWorldKotlin’ HelloWorldKotlin
2018-03-31 22:05:00,824 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 28652
2018-03-31 22:05:01,650 [d thread 1] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --configure-on-demand -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.api=27 -Pandroid.injected.build.density=420dpi -Pandroid.injected.build.abi=x86 -Pandroid.injected.restrict.variant.name=debug -Pandroid.injected.restrict.variant.project=:app -Pandroid.optional.compilation=INSTANT_DEV,FULL_APK -Pandroid.injected.coldswap.mode=MULTIAPK --no-build-cache --init-script /tmp/sync.local.repo.gradle
2018-03-31 22:05:10,086 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: BUILD_FINISHED
2018-03-31 22:05:10,086 [e-1024-b01] INFO - idea.project.IndexingSuspender - Finishing batch update for project: Project ‘/home/brian/AndroidStudioProjects/HelloWorldKotlin’ HelloWorldKotlin
2018-03-31 22:05:10,089 [e-1024-b01] INFO - ild.invoker.GradleBuildInvoker - Gradle build finished in 9s 682ms
2018-03-31 22:05:10,109 [e-1024-b01] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-03-31 22:05:10,190 [d thread 3] INFO - a.gradle.run.MakeBeforeRunTask - Gradle invocation complete, success = true
2018-03-31 22:05:10,233 [e-1024-b01] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-03-31 22:05:10,259 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 3ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,440 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 181ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,441 [ thread 10] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1 files to update
2018-03-31 22:05:10,481 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 41ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,620 [d thread 7] INFO - run.AndroidLaunchTasksProvider - Using debugger: Auto
2018-03-31 22:05:10,674 [d thread 7] INFO - #InstantRun - $ adb install-multiple -r -t /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_4.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_5.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_3.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_0.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_1.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_2.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_7.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_6.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/dep/dependencies.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_8.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/resources/instant-run/debug/resources-debug.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_9.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/instant-run-apk/debug/app-debug.apk
2018-03-31 22:05:12,844 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 29462
2018-03-31 22:05:13,875 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 29462
2018-03-31 22:05:14,807 [e-1024-b01] INFO - .tasks.ConnectJavaDebuggerTask - Attempting to connect debugger to port 8600 [client 29462]
2018-03-31 22:05:14,810 [e-1024-b01] INFO - idea.run.AndroidProcessHandler - stopAll()
2018-03-31 22:05:15,075 [e-1024-b01] INFO - .tasks.ConnectJavaDebuggerTask - captureLogcatOutput(“emulator-5554”)
2018-03-31 22:05:30,525 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - TMP_FILE:
package com.f2fg.helloworldkotlin

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)

    var ffs: Int = 0
    Log.d("MainActivity", "ffs=$ffs")
    ffs = 1
    Log.d("MainActivity", "ffs=$ffs")
    ffs=2
    10

Log.d(“MainActivity”, “ffs=$ffs”)
}
}

2018-03-31 22:05:30,764 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - Extracted function:
private fun generated_for_debugger_fun(): kotlin.Int {
return 10
}
2018-03-31 22:05:30,770 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - File for eval4j:

@file:JvmName(“Generated_for_debugger_class”)
package com.f2fg.helloworldkotlin

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

private fun generated_for_debugger_fun(): kotlin.Int {
return 10
}

2018-03-31 22:05:30,774 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator -
com.intellij.openapi.progress.ProcessCanceledException
at org.jetbrains.kotlin.idea.ProgressUtilKt.runInReadActionWithWriteActionPriorityWithPCE(ProgressUtil.kt:26)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.checkForErrors(KotlinEvaluationBuilder.kt:522)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.access$checkForErrors(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion$createClassFileFactory$1.invoke(KotlinEvaluationBuilder.kt:452)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion$createClassFileFactory$1.invoke(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt$sam$Computable$0997cc15.compute(ApplicationUtils.kt)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:927)
at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt.runReadAction(ApplicationUtils.kt:24)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.createClassFileFactory(KotlinEvaluationBuilder.kt:446)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.extractAndCompile(KotlinEvaluationBuilder.kt:224)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.access$extractAndCompile(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$evaluate$compiledData$1.invoke(KotlinEvaluationBuilder.kt:141)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$evaluate$compiledData$1.invoke(KotlinEvaluationBuilder.kt:130)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches$Companion.getOrCreateCompiledData(KotlinDebuggerCaches.kt:114)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator.evaluate(KotlinEvaluationBuilder.kt:138)
at com.intellij.debugger.engine.evaluation.expression.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:51)
at com.intellij.debugger.engine.JavaValueModifier.setValue(JavaValueModifier.java:165)
at com.intellij.debugger.engine.JavaValueModifier.access$000(JavaValueModifier.java:44)
at com.intellij.debugger.engine.JavaValueModifier$2.threadAction(JavaValueModifier.java:222)
at com.intellij.debugger.engine.events.DebuggerContextCommandImpl.contextAction(DebuggerContextCommandImpl.java:83)
at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:73)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:47)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:147)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:43)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:155)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:32)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:61)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Blockquote

2018-03-31 22:04:43,294 [d thread 8] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2018-03-31 22:04:43,295 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Loading Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files)
2018-03-31 22:04:43,298 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 source files
2018-03-31 22:04:43,304 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 unused headers
2018-03-31 22:04:43,305 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2018-03-31 22:04:43,306 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0)
2018-03-31 22:04:43,306 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2018-03-31 22:04:43,994 [d thread 3] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2018-03-31 22:04:50,581 [J pool 1/7] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestCompatibleScreens
2018-03-31 22:04:50,581 [J pool 1/7] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestSupportsInput
2018-03-31 22:05:00,289 [d thread 3] INFO - ools.idea.fd.InstantRunBuilder - BuildCause: NO_DEVICE, BuildMode: FULL
2018-03-31 22:05:00,346 [e-1024-b01] INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [:app:assembleDebug]
2018-03-31 22:05:00,351 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: BUILD_EXECUTOR_CREATED
2018-03-31 22:05:00,357 [d thread 1] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /home/brian/android-studio/jre
2018-03-31 22:05:00,404 [st Monitor] INFO - id.tools.idea.ddms.DevicePanel - Device connected: emulator-5554
2018-03-31 22:05:00,432 [d thread 1] INFO - oject.common.GradleInitScripts - init script file sync.local.repo contents “allprojects {\n buildscript {\n repositories {\n maven { url ‘/home/brian/android-studio/gradle/m2repository’}\n }\n }\n repositories {\n maven { url ‘/home/brian/android-studio/gradle/m2repository’}\n }\n}\n”
2018-03-31 22:05:00,434 [d thread 1] INFO - ild.invoker.GradleBuildInvoker - Build command line options: [–configure-on-demand, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.build.api=27, -Pandroid.injected.build.density=420dpi, -Pandroid.injected.build.abi=x86, -Pandroid.injected.restrict.variant.name=debug, -Pandroid.injected.restrict.variant.project=:app, -Pandroid.optional.compilation=INSTANT_DEV,FULL_APK, -Pandroid.injected.coldswap.mode=MULTIAPK, --no-build-cache, --init-script, /tmp/sync.local.repo.gradle]
2018-03-31 22:05:00,479 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: BUILD_STARTED
2018-03-31 22:05:00,479 [e-1024-b01] INFO - idea.project.IndexingSuspender - Starting batch update for project: Project ‘/home/brian/AndroidStudioProjects/HelloWorldKotlin’ HelloWorldKotlin
2018-03-31 22:05:00,824 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 28652
2018-03-31 22:05:01,650 [d thread 1] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --configure-on-demand -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.api=27 -Pandroid.injected.build.density=420dpi -Pandroid.injected.build.abi=x86 -Pandroid.injected.restrict.variant.name=debug -Pandroid.injected.restrict.variant.project=:app -Pandroid.optional.compilation=INSTANT_DEV,FULL_APK -Pandroid.injected.coldswap.mode=MULTIAPK --no-build-cache --init-script /tmp/sync.local.repo.gradle
2018-03-31 22:05:10,086 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: BUILD_FINISHED
2018-03-31 22:05:10,086 [e-1024-b01] INFO - idea.project.IndexingSuspender - Finishing batch update for project: Project ‘/home/brian/AndroidStudioProjects/HelloWorldKotlin’ HelloWorldKotlin
2018-03-31 22:05:10,089 [e-1024-b01] INFO - ild.invoker.GradleBuildInvoker - Gradle build finished in 9s 682ms
2018-03-31 22:05:10,109 [e-1024-b01] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-03-31 22:05:10,190 [d thread 3] INFO - a.gradle.run.MakeBeforeRunTask - Gradle invocation complete, success = true
2018-03-31 22:05:10,233 [e-1024-b01] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-03-31 22:05:10,259 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 3ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,440 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 181ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,441 [ thread 10] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1 files to update
2018-03-31 22:05:10,481 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 41ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,620 [d thread 7] INFO - run.AndroidLaunchTasksProvider - Using debugger: Auto
2018-03-31 22:05:10,674 [d thread 7] INFO - #InstantRun - $ adb install-multiple -r -t /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_4.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_5.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_3.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_0.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_1.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_2.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_7.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_6.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/dep/dependencies.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_8.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/resources/instant-run/debug/resources-debug.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_9.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/instant-run-apk/debug/app-debug.apk
2018-03-31 22:05:12,844 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 29462
2018-03-31 22:05:13,875 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 29462
2018-03-31 22:05:14,807 [e-1024-b01] INFO - .tasks.ConnectJavaDebuggerTask - Attempting to connect debugger to port 8600 [client 29462]
2018-03-31 22:05:14,810 [e-1024-b01] INFO - idea.run.AndroidProcessHandler - stopAll()
2018-03-31 22:05:15,075 [e-1024-b01] INFO - .tasks.ConnectJavaDebuggerTask - captureLogcatOutput(“emulator-5554”)
2018-03-31 22:05:30,525 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - TMP_FILE:
package com.f2fg.helloworldkotlin

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)

    var ffs: Int = 0
    Log.d("MainActivity", "ffs=$ffs")
    ffs = 1
    Log.d("MainActivity", "ffs=$ffs")
    ffs=2
    10

Log.d(“MainActivity”, “ffs=$ffs”)
}
}

2018-03-31 22:05:30,764 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - Extracted function:
private fun generated_for_debugger_fun(): kotlin.Int {
return 10
}
2018-03-31 22:05:30,770 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - File for eval4j:

@file:JvmName(“Generated_for_debugger_class”)
package com.f2fg.helloworldkotlin

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

private fun generated_for_debugger_fun(): kotlin.Int {
return 10
}

2018-03-31 22:05:30,774 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator -
com.intellij.openapi.progress.ProcessCanceledException
at org.jetbrains.kotlin.idea.ProgressUtilKt.runInReadActionWithWriteActionPriorityWithPCE(ProgressUtil.kt:26)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.checkForErrors(KotlinEvaluationBuilder.kt:522)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.access$checkForErrors(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion$createClassFileFactory$1.invoke(KotlinEvaluationBuilder.kt:452)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion$createClassFileFactory$1.invoke(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt$sam$Computable$0997cc15.compute(ApplicationUtils.kt)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:927)
at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt.runReadAction(ApplicationUtils.kt:24)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.createClassFileFactory(KotlinEvaluationBuilder.kt:446)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.extractAndCompile(KotlinEvaluationBuilder.kt:224)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.access$extractAndCompile(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$evaluate$compiledData$1.invoke(KotlinEvaluationBuilder.kt:141)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$evaluate$compiledData$1.invoke(KotlinEvaluationBuilder.kt:130)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches$Companion.getOrCreateCompiledData(KotlinDebuggerCaches.kt:114)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator.evaluate(KotlinEvaluationBuilder.kt:138)
at com.intellij.debugger.engine.evaluation.expression.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:51)
at com.intellij.debugger.engine.JavaValueModifier.setValue(JavaValueModifier.java:165)
at com.intellij.debugger.engine.JavaValueModifier.access$000(JavaValueModifier.java:44)
at com.intellij.debugger.engine.JavaValueModifier$2.threadAction(JavaValueModifier.java:222)
at com.intellij.debugger.engine.events.DebuggerContextCommandImpl.contextAction(DebuggerContextCommandImpl.java:83)
at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:73)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:47)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:147)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:43)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:155)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:32)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:61)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)2018-03-31 22:04:43,294 [d thread 8] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2018-03-31 22:04:43,295 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Loading Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 s.
2018-03-31 22:04:43,297 [d thread 8] INFO - #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files)
2018-03-31 22:04:43,298 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 source files
2018-03-31 22:04:43,304 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 unused headers
2018-03-31 22:04:43,305 [d thread 8] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2018-03-31 22:04:43,306 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0)
2018-03-31 22:04:43,306 [d thread 8] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2018-03-31 22:04:43,994 [d thread 3] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2018-03-31 22:04:50,581 [J pool 1/7] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestCompatibleScreens
2018-03-31 22:04:50,581 [J pool 1/7] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestSupportsInput
2018-03-31 22:05:00,289 [d thread 3] INFO - ools.idea.fd.InstantRunBuilder - BuildCause: NO_DEVICE, BuildMode: FULL
2018-03-31 22:05:00,346 [e-1024-b01] INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [:app:assembleDebug]
2018-03-31 22:05:00,351 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: BUILD_EXECUTOR_CREATED
2018-03-31 22:05:00,357 [d thread 1] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /home/brian/android-studio/jre
2018-03-31 22:05:00,404 [st Monitor] INFO - id.tools.idea.ddms.DevicePanel - Device connected: emulator-5554
2018-03-31 22:05:00,432 [d thread 1] INFO - oject.common.GradleInitScripts - init script file sync.local.repo contents “allprojects {\n buildscript {\n repositories {\n maven { url ‘/home/brian/android-studio/gradle/m2repository’}\n }\n }\n repositories {\n maven { url ‘/home/brian/android-studio/gradle/m2repository’}\n }\n}\n”
2018-03-31 22:05:00,434 [d thread 1] INFO - ild.invoker.GradleBuildInvoker - Build command line options: [–configure-on-demand, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.build.api=27, -Pandroid.injected.build.density=420dpi, -Pandroid.injected.build.abi=x86, -Pandroid.injected.restrict.variant.name=debug, -Pandroid.injected.restrict.variant.project=:app, -Pandroid.optional.compilation=INSTANT_DEV,FULL_APK, -Pandroid.injected.coldswap.mode=MULTIAPK, --no-build-cache, --init-script, /tmp/sync.local.repo.gradle]
2018-03-31 22:05:00,479 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: BUILD_STARTED
2018-03-31 22:05:00,479 [e-1024-b01] INFO - idea.project.IndexingSuspender - Starting batch update for project: Project ‘/home/brian/AndroidStudioProjects/HelloWorldKotlin’ HelloWorldKotlin
2018-03-31 22:05:00,824 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 28652
2018-03-31 22:05:01,650 [d thread 1] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --configure-on-demand -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.api=27 -Pandroid.injected.build.density=420dpi -Pandroid.injected.build.abi=x86 -Pandroid.injected.restrict.variant.name=debug -Pandroid.injected.restrict.variant.project=:app -Pandroid.optional.compilation=INSTANT_DEV,FULL_APK -Pandroid.injected.coldswap.mode=MULTIAPK --no-build-cache --init-script /tmp/sync.local.repo.gradle
2018-03-31 22:05:10,086 [e-1024-b01] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: BUILD_FINISHED
2018-03-31 22:05:10,086 [e-1024-b01] INFO - idea.project.IndexingSuspender - Finishing batch update for project: Project ‘/home/brian/AndroidStudioProjects/HelloWorldKotlin’ HelloWorldKotlin
2018-03-31 22:05:10,089 [e-1024-b01] INFO - ild.invoker.GradleBuildInvoker - Gradle build finished in 9s 682ms
2018-03-31 22:05:10,109 [e-1024-b01] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-03-31 22:05:10,190 [d thread 3] INFO - a.gradle.run.MakeBeforeRunTask - Gradle invocation complete, success = true
2018-03-31 22:05:10,233 [e-1024-b01] INFO - pl.ProjectRootManagerComponent - project roots have changed
2018-03-31 22:05:10,259 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 3ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,440 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 181ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,441 [ thread 10] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1 files to update
2018-03-31 22:05:10,481 [ thread 10] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 41ms; general responsiveness: ok; EDT responsiveness: ok
2018-03-31 22:05:10,620 [d thread 7] INFO - run.AndroidLaunchTasksProvider - Using debugger: Auto
2018-03-31 22:05:10,674 [d thread 7] INFO - #InstantRun - $ adb install-multiple -r -t /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_4.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_5.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_3.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_0.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_1.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_2.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_7.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_6.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/dep/dependencies.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_8.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/resources/instant-run/debug/resources-debug.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/split-apk/debug/slices/slice_9.apk /home/brian/AndroidStudioProjects/HelloWorldKotlin/app/build/intermediates/instant-run-apk/debug/app-debug.apk
2018-03-31 22:05:12,844 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 29462
2018-03-31 22:05:13,875 [nt Monitor] INFO - #com.android.ddmlib - Opening a debugger listener at port 8600 for client with pid 29462
2018-03-31 22:05:14,807 [e-1024-b01] INFO - .tasks.ConnectJavaDebuggerTask - Attempting to connect debugger to port 8600 [client 29462]
2018-03-31 22:05:14,810 [e-1024-b01] INFO - idea.run.AndroidProcessHandler - stopAll()
2018-03-31 22:05:15,075 [e-1024-b01] INFO - .tasks.ConnectJavaDebuggerTask - captureLogcatOutput(“emulator-5554”)
2018-03-31 22:05:30,525 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - TMP_FILE:
package com.f2fg.helloworldkotlin

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)

    var ffs: Int = 0
    Log.d("MainActivity", "ffs=$ffs")
    ffs = 1
    Log.d("MainActivity", "ffs=$ffs")
    ffs=2
    10

Log.d(“MainActivity”, “ffs=$ffs”)
}
}

2018-03-31 22:05:30,764 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - Extracted function:
private fun generated_for_debugger_fun(): kotlin.Int {
return 10
}
2018-03-31 22:05:30,770 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator - File for eval4j:

@file:JvmName(“Generated_for_debugger_class”)
package com.f2fg.helloworldkotlin

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

private fun generated_for_debugger_fun(): kotlin.Int {
return 10
}

2018-03-31 22:05:30,774 [agerThread] DEBUG - ugger.evaluate.KotlinEvaluator -
com.intellij.openapi.progress.ProcessCanceledException
at org.jetbrains.kotlin.idea.ProgressUtilKt.runInReadActionWithWriteActionPriorityWithPCE(ProgressUtil.kt:26)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.checkForErrors(KotlinEvaluationBuilder.kt:522)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.access$checkForErrors(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion$createClassFileFactory$1.invoke(KotlinEvaluationBuilder.kt:452)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion$createClassFileFactory$1.invoke(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt$sam$Computable$0997cc15.compute(ApplicationUtils.kt)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:927)
at org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt.runReadAction(ApplicationUtils.kt:24)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.createClassFileFactory(KotlinEvaluationBuilder.kt:446)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.extractAndCompile(KotlinEvaluationBuilder.kt:224)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$Companion.access$extractAndCompile(KotlinEvaluationBuilder.kt:211)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$evaluate$compiledData$1.invoke(KotlinEvaluationBuilder.kt:141)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator$evaluate$compiledData$1.invoke(KotlinEvaluationBuilder.kt:130)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches$Companion.getOrCreateCompiledData(KotlinDebuggerCaches.kt:114)
at org.jetbrains.kotlin.idea.debugger.evaluate.KotlinEvaluator.evaluate(KotlinEvaluationBuilder.kt:138)
at com.intellij.debugger.engine.evaluation.expression.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:51)
at com.intellij.debugger.engine.JavaValueModifier.setValue(JavaValueModifier.java:165)
at com.intellij.debugger.engine.JavaValueModifier.access$000(JavaValueModifier.java:44)
at com.intellij.debugger.engine.JavaValueModifier$2.threadAction(JavaValueModifier.java:222)
at com.intellij.debugger.engine.events.DebuggerContextCommandImpl.contextAction(DebuggerContextCommandImpl.java:83)
at com.intellij.debugger.engine.events.SuspendContextCommandImpl.action(SuspendContextCommandImpl.java:73)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:47)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:147)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:43)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:155)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:32)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:61)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


#2

With regular intellij Java debugging you can right click on the variable and select “set value” (or something like that). If Android supports changing variables (probably) that should be exposed in the same way.