The introduction of Just-in-Time (JIT) debugger tool drmingw:
https://vroby.ddns.net/Public/sdlBasic/MinGW/doc/drmingw/drmingw.html
It’s very easy to install this tool. We can download from the internet and unzip it:
It’s necessary to put the directory of the tool bin in the environment variable Path on windows OS.
After that, we can run drmingw.exe by cmd as administrator just like this:
drmingw.exe -i -a
It means the whole installation is successful if we get the following message box.

Let’s write a simple CPP file which can get an executable that will crash if we run it.
#includeusing namespace std; struct Node { char value; }; int main() { Node *ptr = NULL; cout << ptr->value << endl; return 0; }
Run the executable file and get the crash information: