Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS2013 add-in: Expression2.MakeObjectID doesn't return a value- how can I obtain the new object id?

$
0
0

The EnvDTE100.Expression2.MakeObjectID method creates a debug object ID, just like right-clicking a value in the debugger and selecting 'Make Object ID.'

I would like to be able to get that ID (such as 1#, 2#, 3#) for the expression and display it. Expression2.Name, .Type and .Value do not return the ID.
Debugger5.ExecuteStatement(expression.Name) prints the expression's value and ID to the command window but I don't know how to read from that window, and I'd rather not write in it. There has to be a way to evaluate a statement and have it return the result instead of printing it to a window.

Does anyone know what steps I might take next?



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>