I searched for a solution to my problem already in Google and here in stack overflow. I didn't found an understandable and precise solution for my problem:
I've written a program that maintains an inventory. It compiled without warnings or errors and it works quite well when I type in commands by hand. When I'm running the program with an input file with much more parts I get a segmentation fault 11.
Now I want to debug my program but don't know how to do this using input files. I already did some debugging via the CodeBlocks IDE. Didn't find a option for this.
I used malloc and realloc functions in my program and think the error happened there because I never used it before.
Could you please help me in following ways:
- I need a debugger that can debug while the program runs with an input file.
- The debugger must be able to check for memory leaks or things like this.
Thanks Armin