How to set breakpoint on single line lambda?
eg. I would like the debugger (eclipse) to stop when outer.doSth(event) is called:
outer.doSth(event)
observable.addCallback(event-> outer.doSth(event));
You can not.
If you reorganize it like this:
observable.addCallback(event-> { return outer.doSth(event); });
You can.
Well, this answer is not for eclipse, but in intellij you can (15.x)
intellij
You have the option to set a breakpoint either on the line (which is the first option on the image), or on the first lambda or on the second. And so on.
Source: https://habr.com/ru/post/1240915/More articles:Why does time.sleep cause a memory leak? - pythonProblems with ELF - linuxFunction similar to numpy diff function - pythonHow can I keep an eye on PEP8 python regarding line breaks and how important is this? - pythonFailed to connect to localhost orientdb using jdbc - orientdbhow can i get json response from php below format? - jsonCreating an Outlook Template File (.oft) in an ASP.Net MVC Application - c #How to extend ggplot2 boxplot with ggproto? - rAngular $ q.all is called upon completion of the first promise - javascriptIdentification of the last element - cssAll Articles