In an Java Project this is possible while debugging by “mis”-using a conditional breakpoint to set a value to a property or variable:

[Java Breakpoint](https://i.stack.imgur.com/I4JL2.png)

Unfortunately the same thing is not possible in a Kotlin Project. The error is: Assignments are not expressions, and only expressions are allowed in this context:

[Kotlin Breakpoint](https://i.stack.imgur.com/cMLoE.png)

I know that I can do it in debugger window using “Set Value”, but then i have to do it every time manually. Using a conditional breakpoint/watchpoint the value is set automatically without even suspending the program until I delete the breakpoint. This is pretty useful for smoke test or presentations.

Thanks in advance!