Visual Studio 2015 Update 2 and debugging Revit API addins

Visual Studio 2015 Update 2 and debugging Revit API addins

Anonymous
Not applicable
719 Views
3 Replies
Message 1 of 4

Visual Studio 2015 Update 2 and debugging Revit API addins

Anonymous
Not applicable

Hi there

 

don't know if this is the correct forum to ask....

Microsoft has enabled debugging lambda expressions in the Visual Studio 2015 debugger. This great!

However, this doesn't work when I am debugging Revit Addins

 

what a shame.... anyone here who has the same problem and found a way to fix it?

 

cheers

Jeroen

0 Likes
720 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

I faced the same problem which I upgraded to VS2015 from VS2013.
At the beginning I chose to apply same development environment as VS2013's, then the problem occurred.

I solved this issue with following steps.
[TOOLS]->[Import and Export Settings]->[Reset all settings]

Hopefully It would helps.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi thanks for the reply again and sorry I did not answer yet

It still shows an error (no longer the unable to evaluate lambda expressions

 

if for instance I have a collection of elements 

_familyElements.Select(x =>x.Id) shows {System.Linq.Enumerable.WhereSelectListIterator<Autodesk.Revit.DB.Element, Autodesk.Revit.DB.ElementId>}

 

but when I open this 

Error The debugger is unable to evaluate this expression

 

 

 

0 Likes
Message 4 of 4

Anonymous
Not applicable

You can just add a little  expression "Enumerable.Range(0, 100).Select(i => (float)i / 10).ToArray()" to "watch" for checking lambda debugger works or not.

But yes,I think there's some capability issues or limitations with combination of Revit classes and lambda expression(I've tried revit 2016).

Maybe it would have a workout in further releases.

0 Likes