BugTrap: Catch unhandled exceptions in unmanaged and managed .NET code.

Dmitry Tsarevich 213c2ca93d Code quality PR with @dimhotepus and PVS-Studio (#33) 3 months ago
doc 4ab0918b22 Readme notes about bug trap server. 5 years ago
pkg 082bb25d31 Merge branch 'master' of github.com:bchavez/BugTrap into develop 5 years ago
source 213c2ca93d Code quality PR with @dimhotepus and PVS-Studio (#33) 3 months ago
.gitattributes 57bd5153f8 BugTrap source archive initial import 8 years ago
.gitignore b3ba0cdc3b Enable NuGet package restore for VS2013. 5 years ago
HISTORY.md 09a3882946 Update HISTORY.md 3 years ago
LICENSE 8310ed5a4b LICENSE changed to MIT license with permission from original author. 5 years ago
README.md 5c82f90bc5 fixed link to pdf 5 years ago
appveyor.yml b861af4817 Ensure VersionInfo.h is updated properly. Proper GitHub title. 5 years ago
build.cmd 213c2ca93d Code quality PR with @dimhotepus and PVS-Studio (#33) 3 months ago
install-dependencies.ps1 213c2ca93d Code quality PR with @dimhotepus and PVS-Studio (#33) 3 months ago


Build status Release License


BugTrap is a tool to catch unhandled exceptions in unmanaged and managed .NET code. BugTrap also supports sending crash reports to a remote server for analysis.

The original author, Maksim Pyatkovskiy, has a great article about BugTrap on CodeProject that goes into detail about how BugTrap is used.

The BugTrap source code and binaries in this repository are granted by the original author under the MIT license. In other words, you're free to use BugTrap in commercial and non-commercial applications.

Download & Install

Check the releases section in this repository for the latest builds: BugTrap.zip contains all BugTrap components required for Win32/x64 projects:

  • BugTrap[U][D][N][-x64].dll - BugTrap DLL module.
  • BugTrap[U][D][N][-x64].lib - BugTrap library file used by linker.
    • [U] - Unicode aware version has 'U' letter. ANSI version doesn't have 'U' letter.
    • [D] - Debug version has 'D' letter. Release version doesn't have 'D' letter.
    • [N] - managed (.NET) version has 'N' letter. Native version doesn't have 'N' letter.
    • [-x64] - 64 bit version for AMD-64 platform has '-x64' suffix. x86 version doesn't have this suffix.
  • dbghelp.dll - DbgHelp library (see "BugTrap Developer's Guide" for details).
  • BugTrap.h - Header file with BugTrap API definitions.
  • BTTrace.h - C++ wrapper of custom logging functions.
  • BTAtlWindow.h - ATL/WTL exception handlers.
  • BTMfcWindow.h - MFC exception handlers.
  • CrashExplorer.exe - MAP file analyzer.
  • BugTrap.chm - BugTrap 1.x Specification.

Please see "BugTrap Developer's Guide" for additional information about file types used by BugTrap for Win32/x64.

BugTrap Server Application

Inside BugTrap.zip, you'll also find the following server applications for server side acceptance of crash reports:

  • Server\BugTrapServer - BugTrap Server Windows Service in C#
  • Server\BugTrapWebServer - BugTrap Web Server in ASP.NET
  • Server\JBugTrapServer - BugTrap Server in Java

You can choose any server technology to begin accepting crash reports from BugTrap clients. Open and edit *.config files for various configuration parameters.


Screenshot Screenshot Screenshot