Exception Hunter - 3.0
Learning Exception Hunter - 3.0
Analyzing Your Code
To start analyzing your code:
- Add the assemblies.
When you first start Exception Hunter, you need to add the assemblies that you want to analyze. If another assembly is referenced by an added assembly, it is added automatically. Any referenced assembly that cannot be found on your file system is identified as "Not Found"; you can then browse to locate it, or ignore it in the analysis.
- Locate the method you want to analyze.
To select the method you want to analyze, you can search for a method using the Find box, or drill down to view all namespaces, classes, structs, and their methods.
- View the results.
Exceptions are listed by type. You can explore the list of exceptions by selecting an exception type to see all the places in your code that the exception is thrown.
- Drill down through the stack trace for the selected exception class.
To find situations in which the exception may be thrown, view the source code of the method selected in the stack trace.
- Adjust the options, if required.
From the Tools menu, select Options to display the Options dialog box, in which you can set a number of options for how Exception Hunter analyzes your code. For example, you can set the version of the .NET Framework for detecting exceptions, or use a more detailed analysis, which detects more exceptions but can take longer to run. Hints are available for each option in the Options dialog.
Notes
- Exception Hunter cannot detect exceptions that may be thrown when following delegate calls, for example Event Handler calls.
You should therefore analyze the target methods for such delegates. We recommend that you wrap any exceptions and throw them as a domain-specific exception type.
- Static classes appear in the list as abstract sealed classes, as this is how they are represented by the .NET CLR.
- Runtime Exceptions (other than some NullReferenceExceptions and InvalidCastExceptions) generated by the .NET CLR are not detected by Exception Hunter.
See also |
Was this article helpful?
Exception Hunter
- Log files
- Type forwarding, .NET 4 and WPF support in Exception Hunter 3.0
- Viewing methods that throw a particular type of exception
- Creating an assembly for an ASP .NET 2.0 web application (version 1)
- Method analysis causing "application configuration is incorrect" errors
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
Exception Hunter
- Activating your products
- Activating your products
- Getting help offline
- Exception Hunter release notes - version 2.xx
- Exception Hunter release notes - version 3.xx
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using Exception Hunter
Using the command line