I'm trying to debug lambda expressions with Visual Studio 2015 while in debug mode on an Android device. If I put
this.customerList.Where(p => p.LastName == "Doe").ToList()
in the Watch or Immediate Window I get
Expression not supported.
I'm doing this after the debugger stopped at the breakpoint. If I don't use the breakpoint I get
The expression cannot be evaluated while in run mode.
What I'm doing wrong?
The options stated in lambda expressions in immediate window for VS2015 are grayed out and not ticked, while in debug mode.
Edit
I tried the example code from Tatranskymedved with the same result:
My guess is that debugging lambda expression is not possible with Xamarin. I tried it on device and on simulator and both are showing the same result. Another possibility would be that I have to change some debugger settings. Here I tried to disable Use Fast Deployment (debug mode only)
and Use Shared Runtime
without success.