Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Roslyn and Debugging

The Roslyn CTP has been out for some time now and I've enjoyed playing around with it a little, but there's one obvious question that I haven't seen answered yet. What, if any, benefits will Roslyn bring to debugging?

Anyone who has spent any time doing serious debugging in Visual Studio knows how frustrating it is not to be able to use lambda expressions, and thus LINQ, during debugging. Given that Roslyn is a compiler-as-a-service, will it be possible to make debugging (watch window/immediate window) support these features?

Thanks for anyone with any insight.

EDIT:

To be more specific, the following article details why lambdas cannot currently be used in the immediate/watch window.

LINQ in Debugger Windows

Is it known whether Roslyn specifically addresses the problems this article details?

like image 272
MgSam Avatar asked May 29 '12 22:05

MgSam


1 Answers

Given that Roslyn is a compiler-as-a-service, will it be possible to make debugging (watch window/immediate window) support these features?

This would have to be implemented by the Visual Studio team - and (theoretically) could be done using their current codebase.

I do suspect that Roslyn, given it's clean architecture, will dramatically simplify their work in implementing these other features, which in turn may cause them to be more likely to appear in a future version of Visual Studio (after Roslyn is actually used within VS).

like image 79
Reed Copsey Avatar answered Sep 28 '22 07:09

Reed Copsey