views:

333

answers:

2

Do you know a Visual Studio 2008 Addon, which allows the debugging of Lambda expressions (in the Watch window)?

A: 

Here is something I read recently, it might be useful for you.

You can also try VS2008 Expression Tree Visualizer or code your own. More information here

Stan R.
+2  A: 

It does not work for the same reason Edit-and-Continue does not work with methods with lambda expressions.

This is due to the fact that while it is easy to change the IL of a method at runtime (see MethodRental for more info), changing the metadata of an assembly (which creating a closure requires) is impossible without reloading it.

If C# had absolutely no side effects, this would be theoretically possible.

leppie