GithubHelp home page GithubHelp logo

yqs112358 / crashlogger Goto Github PK

View Code? Open in Web Editor NEW
27.0 1.0 7.0 260 KB

Provide crash listener for any process, and dump stack when the process is crashed.

License: Apache License 2.0

C++ 91.43% C 7.43% Batchfile 1.13%
debug debugging dumpbin stackwalker crash crash-reporting inject

crashlogger's Introduction

CrashLogger

Provide crash listener for any process, and dump stack when the process is crashed.

Usage

Use as a single daemon process

  1. Start the program you want to listen to, and get its ProcessID
  2. Execute in terminal: CrashLogger_Daemon.exe <ProcessID>
  3. Finished. When the target process crashed, the daemon will dump its stack and output stacktrace to console.

Work along with your program

  1. Use LoadLibrary to load CrashLogger.dll.
  2. CrashLogger.dll will start CrashLogger_Daemon.exe in background and start daemon.
  3. Finished. When your process crashed, the daemon will dump its stack and output stacktrace to console.

At Crash

  • Result of stack walk will output both at console and file .\logs\Crash\TrackBack_xxxxxxxx_xx-xx-xx.log
  • Dumpbin database will generate at file .\logs\Crash\CrashDump_xxxxxxxx_xx-xx-xx.dmp

image-20210716124312591

  • Stack walk can give you a general view of possible problems.

Using CrashDump, Dump files and WinDbg or Visual Studio, you can get more infomation about the crash.

PDB Files

CrashLogger will find PDB files in target process's directory, which contains significant symbol information for stacktrace. So you can put PDBs of your program or the libraries you used into .\PDB directory. It will helps a lot.

Tips

CrashLogger attach to the target program as a debugger to catch unhandled exception and crash. So if another debugger is attached before (like Visual Studio Debugger), CrashLogger will not work.

crashlogger's People

Contributors

yqs112358 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.