-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
# CrashLogger | ||
> A dll injected into process to dump stack when crashing. | ||
> Provide crash listener for any process, and dump stack when the process is crashed. | ||
Support me at [https://www.minebbs.com/resources/crashlogger-pro.2645/](https://www.minebbs.com/resources/crashlogger-pro.2645/) | ||
## Usage | ||
|
||
### Use as a single daemon process | ||
|
||
### At Crash | ||
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](asserts/image-20210716124312591.png) | ||
|
||
![](asserts/files.png) | ||
|
||
- 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. | ||
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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters