fwcd / kotlin-debug-adapter

Kotlin/JVM debugging for any editor/IDE using the Debug Adapter Protocol
MIT License
109 stars 19 forks source link

VSCode Debug Console not evaluating expressions #88

Open alegomes opened 4 months ago

alegomes commented 4 months ago

Create a very basic project with gradle init

image

Set a breakpoint and start debugging it...

image

..and try to evaluate expressions in the Debug Console.

It doesn't work :-(

fwcd commented 3 months ago

Currently only variables in the program can be "evaluated", arbitrary expressions are not supported yet:

https://github.com/fwcd/kotlin-debug-adapter/blob/7f05669b642d21afa46ac7b75307fa5d523a7263/adapter/src/main/kotlin/org/javacs/ktda/adapter/KotlinDebugAdapter.kt#L400-L412