+6
Completed

Restore "Make Object ID"

Julien Lebosquain 9 years ago updated by Omer Raviv (CTO) 7 years ago 3
In Visual Studio, when right clicking on an object in the watch window or in a data tip, there is a menu entry named "Make object ID". This little unknown gem simply associate an unique number to the referenced object for the debugging session, allowing to easily track it across method calls. I use this feature a lot to ensure that I have the good objects around in memory, especially after a lot of cloning/copying.

Adding this feature back to BugAid would be a really welcome start. Maybe with a more explicit name like "track reference" so that it's a little more discoverable. Then, there are a number of things that could be done to improve the original VS feature: having a watch-like window with all tracked references and being able to name a reference rather than only having a single integer to represent it.

In any case, keep up the good work! I just only started using BugAid and it feels like ReSharper: once used to it, you never go back to a Visual Studio without it.

Answer

Answer
Completed

Support for Make Object ID was implemented is included in OzCode 0.9.3223.6114. We think the "Track References" tool window idea discussed in this thread is a wonderful idea, and are planning to add it in a future release.

Thank you very much for your kind words! Your last comment really made my day :)

We hope to restore the "Make Object ID" functionality in BugAid's data-tip and QuickWatch in the near future. As a temporary workaround, you can click "Add To Watch" and then use "Make Object ID" on your variable from the Watch window.

I really liked your idea about the "Track references" window. We'll definitely give it some serious thought!
A +1 for some kind of reference tracking via ICorDebugHeapValue2::CreateHandle
In fact, it should be easy enough to keep track of which expressions have references created for them and just recreate handles for those expressions every debug session. I wonder why VS doesn't do this and instead forgets that you've made a handle on an expression.
Started

Support for Make Object ID was implemented will be included in the next update of BugAid. A "Track references" tool window is also planned for a future release.

Answer
Completed

Support for Make Object ID was implemented is included in OzCode 0.9.3223.6114. We think the "Track References" tool window idea discussed in this thread is a wonderful idea, and are planning to add it in a future release.