microsoft / smartdump Goto Github PK
View Code? Open in Web Editor NEWSmartDump - an exception and memory dump capture utility
License: MIT License
SmartDump - an exception and memory dump capture utility
License: MIT License
SmartDump v1.12
New feature:
Support of capture .Net 6 dump and exceptions has been added.
SmartDump v1.10
New feature:
Now -v option can real-time display manage callstack when a .net exception is thrown. Moreover using function name as filter to capture memory dump is supported.
(NOTE: this feature is only available on 32bit version currently and hasn't been added into 64bit version.
SmartDump v1.09
New feature:
This build is pretty much a big milestone: now -v option can real-time display manage callstack when a .net exception is thrown. Moreover using function name as filter to capture memory dump is supported in this build.
(NOTE: this feature is only available on 32bit version currently and hasn't been added into 64bit version.
SmartDump v1.08
New feature:
Added -v option to display verbose output to list frames of managed callstack. Then we can utilize addresses from its output to set breakpoint with -a option. For example, a code entry address of a function can be used to dump its corresponding interested call:
SmartDump.exe -p 4567 -n 20 -v
The frame output indicates the entry code address of the first managed call that threw the exception is 0x00007ffd`551f0eb0.
So we use address: 00007ffd`551f0eb0 as breakpoint to capture dump with -a option:
As we can see, 00007ffd`551f0eb0 is just the entry address of function: System.Data.SqlClient.SqlConnection.OnError
SmartDump v1.07
New feature:
SmartDump v1.06
New feature:
Added -mn option to support capture mini dumps. For example, the following command captures 3 mini dump files for each of the 3 specified exception types: InvalidOperationException, SqlException and ServiceOperationsProviderException .
SmartDump.exe -p 3328 -n 40 -de 3 -mn -f "InvalidOperationException|SqlException|ServiceOperationsProviderException"
SmartDump v1.05
This is the first official release which is no longer a beta version.
Bug fix in this build:
SmartDump v1.04 beta
Bug fix in this build:
SmartDump v1.03 beta
New feature:
Example:
In the following sample, SmartDump with -de switch will capture 3 dumps for SqlException, InvalidOperationException and ServiceOperationsProviderException one by one.
Bug fix in this build:
SmartDump v1.02 beta
New feature:
Bug fix in this build:
SmartDump v1.01 beta
New feature:
Sample output:
20:26:44 [Managed Exception] <System.NullReferenceException> Object reference not set to an instance of an object.
User pressed Ctrl+C. Detaching from target process: 306256.
Bug fix in this build:
SmartDump v1.00 beta
New feature:
Add -s option support.
-s Skip the first number of exceptions for dump capture. This option is useful when initial exceptions cannot reflect an actual issue.
Example:
Skip the first 3 NullReferenceException. Capture a memory dump for the 4th one and specify output path to: c:\home\dump.
SmartDump.exe -p 4567 -n 10 -f "NullReferenceException" -s 3 -d 1 -o c:\home\dump
Bug fix in this build:
SmartDump v0.99 alpha
New feature:
Add -fv option support.
-fv Exclude exceptions contain specified filter. Use '|' as delimiter for multiple strings.
Add multiple strings support for -f option.
Examples:
Capture two dumps based on filtered strings of managed exceptions:
SmartDump.exe -p 4567 -f "Object reference not set|ArgumentException" -n 10 -d 2
Exclude exceptions contain specified filter string from output:
SmartDump.exe -p 4567 -n 10 -fv "InvalidOperationException|FileNotFoundException"
Bug fix in this build:
SmartDump v0.98 alpha
Recent improvements in this build:
SmartDump v0.97 x64 alpha
Recent improvements in this build:
SmartDump v0.95 x64 alpha
Recent improvements in this build:
It would be nice to have a way to trigger memory dump collection when CPU hits certain treshold (for example 70%)
In case you find any problem on using SmartDump, please describe details here.
[Problem]: procdump cannot successfully capture .net core exceptions inside Azure Kudu console
Repro steps of Procdump (the last version 08/18/2021)
Create a new function with HTTP trigger template and leave all things as default
Submit some invalid JSON data to the Function App to generate some exceptions
If -g option is used, then all the exceptions are captured as generic CLR exception.
Compare it with the output of my tool which correctly displays the exceptions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.