6

Awhile ago, I needed a Spy++ like application for some .NET UI debugging. I found an old MSDN article with a sample that does things similarly, But that stopped working in newer .NET Framework versions.

Does anyone know of/wrote an application that mimics Spy++ behavior and works on Managed applications (rather, shows Managed events/properties) and works on newer .NET Frameworks, up to 4.0?

pnuts
  • 58,317
  • 11
  • 87
  • 139
Ran Sagy
  • 610
  • 7
  • 17

3 Answers3

5

I can recommend UISpy, a spy utility which uses the UI Automation framework to transparently spy on plain Win32 applications as well as Windows Forms or WPF. It's a bit hard to find UISpy, but I downloaded just the executable itself from http://andrewtokeley.net/archive/2009/09/15/uispy-ndash-download-it-here.aspx - works great!

For .NET applications using Windows Forms and WPF, the application makes use of .NET reflection to display a huge number of properties for the objects.

Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
2

For winforms applications you still can use Spy++ as usual.

For WPF applications take a look to this link . It talks about a tool called snoop. With this tool you can look into a WPF application.

As a side note, I haven't been able to make it work though

HyLian
  • 4,999
  • 5
  • 33
  • 40
  • 1
    For the latest/best version of Snoop, go to http://snoopwpf.codeplex.com/ - it does x86 and x64 in one executable and is much more stable. – Dan Puzey Feb 01 '11 at 09:09
  • 1
    +1 for Snoop. Make sure you run it as administrator when you launch it. – meklarian Mar 07 '11 at 21:42
  • I had used WPF Inspector for a commercial project and it works great. Even snoop works good for me, but I'm more inclined towards WPF Inspector. You can find it here http://wpfinspector.codeplex.com/ – Anil Vangari Oct 05 '12 at 11:30
1

The Windows Software Development Kit (SDK) for Windows 8.1 includes a tool named "Inspect Objects" that I believe is intended as a Spy++ replacement.

ErikE
  • 48,881
  • 23
  • 151
  • 196
John M. Wright
  • 4,477
  • 1
  • 43
  • 61
  • I'm not so sure this does the same - Seems like it shows only automation relevant properties and only allows read only viewing. – Ran Sagy Jun 14 '11 at 08:42
  • @RanSagy Incorrect. Also since when did Spy++ allow you to change things? –  Jan 03 '18 at 04:20
  • @MickyD i doubt i remember why and qhat i was thinking in 2011. thanks for the follow-up though. – Ran Sagy Jan 03 '18 at 09:04