There’s a new debug feature called Pin to Source.
You can use it from a DataTip or the from context menu.
Here’s the pin on the DataTip. You need to click it to engage it and then click again to pin it down.
When you want to inspect a variable, this will leave the DataTip hanging around in the code window while you continue debugging. (Another benefit of the new WPF code editor.)
So as I continue debugging, I can scroll back to that code line and the DataTip is still there.
You can even add notes to the tip.
The only downside is that the designers of this decided not to add yet another item to the context menu. Instead they have grouped the QuickWatch, Add Watch and new Pin to Source items in a sub menu under Expression:. I use the QuickWatch window all of the time and the extra step is really hard for me to get used to.




