How WinDbg get to know source code?

Viewed 5197

I made C++ application to use with WinDbg, and intentionally add access violation run-time error.

Application was compiled as release build, and then I copied exe from release folder to desktop. Still when I use WinDbg, and application crashes, it open my source code file showing error line highlighted.

I am not able to understand, how WinDbg understand my source code file path.

Also, when I get crash dump from client, it may be possible, I do not have source code available with me. So I want to simulate real world scenario.

Regards

2 Answers
Related