(Should be a comment, but is too long)
Since your also asking that question I have the strong feeling that this is a XY problem. You probably don't want to read a dump as stated in this question and you probably don't want to write a debugger yourself as in the other question. My guess: your actual problem is that your program crashes and you want to avoid that.
Your first choice should be to run the program in Debug mode under the debugger (Visual Studio) by pressing the play button, then wait until the crash occurs and find out the real reason why it crashes. Change your code in a way so that the crash does not occur at all, e.g. by checking whether all preconditions are met.
If, for whatever reason, you cannot fix the problem, there's a way to prevent crashes. A crash is caused by an exception and you can use exception handling to work with it. In C# it looks like this:
try
{
// force a crash for demo purposes
throw new InvalidOperationException();
}
catch (InvalidOperationException ex)
{
// do something instead of crashing here
}
For more information on the exception handling topic, read Exception handling in C# or do some internet search for the terms try, catch or exception handling.