I have Win7 Pro (32 bit) and CodeBlocks IDE. I would like to know is there any way to detect line with a segmention fault in C. My code is PRIME1.c I find somewhere on Stack Overflow that this is possible on linux in terminal, but I would like to do that in Windows. Could anyone tell me how to do that? Many thanks!
In other words, I would like to know how to use debugger from cmd in windows 7 and how it can tell me which line is problematic.
I just found this link Determine the line of C code that causes a segmentation fault? But, as you can see, this is for Linux. I would like to know how can I do that in Windows cmd?