Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

odalet/Hawkeye2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important notice

From 2023/02/11, this repository is archived. If you want to contribute or have issues, you are welcome to head over to Hawkeye's new home: https://github.com/zrfisaac/Hawkeye3

Hawkeye 2

Foreword

Starting with Version 2, Hawkeye source code is hosted on github: https://github.com/odalet/Hawkeye2, though the project's offical home remains the Codeplex site: http://hawkeye.codeplex.com/

Project Description

Debugging a managed Windows application is, most of the time, not an easy task. Thus, any tool that can help will make your life easier.

Hawkeye is the only .Net tool that allows you to view, edit, analyze and invoke (almost) any object from a .Net application. Whenever you try to debug, test, change or understand an application, Hawkeye can help.

With a unique option to attach to any running .Net process, Hawkeye offers an impressive set of functionalities seen in no other product.

Features

  • Attach to any .Net Process.
    • Hawkeye can be injected in any .NET process allowing you to easily hook and modify other processes.
    • You can even hook into Visual Studio and modify some of its (.NET) properties (E.g.: the Properties Editor from VS).
    • Since version 1.1.9, Hawkeye has support for 64bit so you can now attach Hawkeye to any x86 or x64 process.
  • A properties editor like the one in Visual Studio that can be used to inspect or modify the properties of any object or control at runtime.
  • Shows you all the properties that are defined on an object (even if they are not normally visible in the designer).
  • Shows you all the fields of an object organized by the class in the hierarchy that owns that property.
  • Shows all the methods of an object organized by the class and visibility of the method.
    • Provides a simple way to invoke methods on objects and pass arguments on any method (public, private ...).
  • Shows you all the events defined on an object and all the event listeners registered to listen to a specific event (e.g.: Form_Load).
    • You can even Invoke an event listener.
  • Shows process information including static information about Application, CurrentContext, CurrentThread, CurrentPrincipal, CurrentProcess, and garbage collection.
  • Supports back/forward navigation between the last edited objects, and supports navigation to child items in collections, enumerations or arrays (E.g.: the Controls collection of a Control).
  • Changes that you do to the code can be logged as C# code that can be just Copy&Pasted back into code.
  • How about "Show Source Code"?
    • You just started in a new project and you don't know where to start? Select your element, open Red Gate's .NET Reflector (formerly Lutz Roeder's .NET Reflector) and select Show source code. Hawkeye will immediately ask Reflector to show you the source code of the selected element being it a field, property, event, method or class.

Building

In order to build a version of Hawkeye that can target both .NET 2 and .NET 4 Windows Forms applications, one should use Visual Studio 2010. Indeed, it is the only version that compile C++/CLI targeting both .NET 2 and .NET 4 CLR. Any older version won't be able to target .NET 4 and any more recent version will not target .NET 2. That said, if only the .NET 4 target is required, using a more recent version of Visual Studio is just fine.

C++/CLI projects referenced in a C# project are not as well integrated as C# projects. This explains why when opening the solution or even after having built once, transitory errors can appear complaining for unknown namespaces in the bootstrapper C# projects. These errors should go away by themselves once Visual Studio finds the compiled binaries of the C++/CLI injector projects.

Credits


About

Hawkeye - The .Net Runtime Object Editor

Resources

Stars

Watchers

Forks

Packages

No packages published