Hi! I'm working on a program with pointers (a linked list) and hit a bug in my code, where a pointer was not initialized. When I run my app under gdb in a shell window (I use MinGW), gdb stops on the SEGFAULT and allows debug.
In Dev-C++, the app stops and dies so it is not possible to debug. I wondered whether it would be possible to catch the app and display the variables. Currently, I can only debug my code when it works :-)
Thanks in advance
Olivier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! I'm working on a program with pointers (a linked list) and hit a bug in my code, where a pointer was not initialized. When I run my app under gdb in a shell window (I use MinGW), gdb stops on the SEGFAULT and allows debug.
In Dev-C++, the app stops and dies so it is not possible to debug. I wondered whether it would be possible to catch the app and display the variables. Currently, I can only debug my code when it works :-)
Thanks in advance
Olivier