When an assert fails or there is a segmentation fault, it would be very convenient that one of the following happens:
- Program ask whether to run a debugger.
- Program waits with crashing until debugger is attached.
- Program leaves something (core dump?) that we can resume execution from this point and investigate.
The question is quite general due to variety of platforms, languages and debuggers. I'm asking about C++ and I guess that Windows (VS), Linux (gdb), Mac (gdb?) solutions would be most useful for community. I'm interested in Linux + gdb.