Joe
Joe

Reputation: 6806

Does Visual Studio have anything like Snoop's event tracking functionality?

Many of you are likely familiar with the "Snoop" utility that you can run on a WPF app and use to track all sorts of things critical to debugging WPF applications. For example, I was having difficulty determining why my PreviewKeyDown Event handler was not receiving preview key downs, so I fired up snoop, set the filter to only show me that, and got this nice output showing me where the event went

enter image description here

That's great and everything but after all this time, I'm surprised there isn't something like this integrated into Visual studio automatically. Either in VS directly or an extension.

Is there one that I am missing?

Upvotes: 0

Views: 347

Answers (1)

Anthony G.
Anthony G.

Reputation: 662

Yes and No.

Visual Studio has had Live Visual tree built in for some time. It has some of the same functionality as Snoop, but you may have to go hunting for it. Bindings, events and data can be inspected and I believe updated in real time just like you can variables in code when debugging.

Live Visual Tree

Upvotes: 2

Related Questions