News for hackers. Stuff that matters.
Re:Erik Meijer: The World According to LINQ by smhinsey on Saturday September 03, 2011 @08:03PM (#2958435)
Syntactically LINQ is a breath of fresh air, but it's totally the opposite when it comes to debugging. Right now the experience of debugging a nested loop (which typically could be converted to some form of LINQ) is way better than if you look at the equivalent LINQ.

It's totally possible I am missing some magical IDE feature, but if you want to do something like take a look at the 4th item in some intermediary part of a LINQ query, you're out of luck unless you can either break it up into smaller units of syntax or convert it to a loop.

Re:Erik Meijer: The World According to LINQ by politician on Saturday September 03, 2011 @08:52PM (#2958497)
Put your cursor on the part of the expression that you want to debug and press F9 to set a breakpoint. Setting breakpoints by clicking in the gutter doesn't work for LINQ like you might expect - you have to use the hotkey.

I frequently hear complaints about debugging LINQ, but Visual Studio supports it well enough. Microsoft could have done a better job informing people about it.

Re:Erik Meijer: The World According to LINQ by smhinsey on Saturday September 03, 2011 @09:17PM (#2958546)
Wow, that is probably going to help a lot, thanks. I've been using VS since the 90s and I still feel like I don't know half of what it can do.

I'm not sure how to fix this, but I am pretty sure the increasing tendency to release documentation as videos is not the answer.