How to see the function body while debugging Scala in Intellij?

Hello,
When I debug Scala via IntelliJ and stop at a breakpoint, I see the function in 'Variables' box as this : nextOperation = <function2>. How do I go to the actual code of the function 'nextOperation'

评论操作 固定链接
正式评论

Hi, Salil,

If you stop on the line where this function is used, you may try to do `Step into` (F7) to get to the actual implementation.

Possibility to see a body of the instance of a functional type from Variables view is not implemented yet. I created a ticket on our tracker, you may vote for it to follow the progress.
https://youtrack.jetbrains.com/issue/SCL-10776

评论操作 固定链接

in the meantime, you can use "jump to type source", which will open the source code in the editor

0
评论操作 固定链接

Jump to type source is a useful feature, but it doesn't always work for lambdas.

0

请先登录再写评论。