Debugging for-comprehension

I have a quite long `for` statement with many mappings and filters inside. It's really hard to understand the logic of stepping through it with the IntelliJ debugger.

The local variables disappear, sometimes some intermediate variables appear with no understandable meaning to the statement at hand.

Do you have some tricks to make it more comfortable to use?

请先登录再写评论。