flutter / flutter/flutter-intellij
Can't debug single line lambda in IntelliJ
- Dominant language
- Java
- Stars
- 2k
- Forks
- 356
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 27
Description
I'm having some difficulty debugging single line lambdas in IntelliJ. This doesn't seem to be a supported feature at the moment.
## Example
```dart
return document.children
.where((node) => node.text == "channel")
...
```
If I set a breakpoint on the second line in the above sample, the breakpoint is triggered on the `.where(...` call, but not the lambda.
## What do I expect to happen?
I'd expect that when a breakpoint is selected for a line that is ambiguous as to what code the breakpoint is meant to select, that I'd be given a menu option to choose what code that breakpoint is selecting, similar to other lambda languages that IntelliJ supports.
[Here is a GIF with an example shown at the beginning of such an experience in scala](https://d3nmt5vlzunoa1.cloudfront.net/scala/files/2015/09/ScalaLambdas1.gif)
Contributor guide
Assessment
This issue has not been assessed yet.