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:
![](https://www.weiy.city/wp-content/uploads/2019/04/5be98724-0ef8-42ab-86d8-767c6b5162b8.png)
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.
![](https://www.weiy.city/wp-content/uploads/2019/04/509d38a4-1ce5-41fe-bdf6-50776baa1140.png)
Let’s write a simple CPP file which can get an executable that will crash if we run it.
#include <iostream>
using namespace std;
struct Node
{
char value;
};
int main()
{
Node *ptr = NULL;
cout << ptr->value << endl;
return 0;
}
![](https://www.weiy.city/wp-content/uploads/2019/04/d9eb6dac-26cd-4f14-8399-83032b427091.png)