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.

#include 

using 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:


0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Convert Chinese
: help you to convert Simplified Chinese and Traditional Chinese.

X
A prohibited operation
0
Would love your thoughts, please comment.x
()
x