How to find the line that causes breaking my program
-
Hello,
My program works well at first but at the last step it breaks ... I don't know the reason so I ask you to tell me if there is a way to find at each line of the source code it stops working
thanks. -
Run your code in a debugger.
-
segmentation fault at some line of the assembly code but how to know which line in the c++ code?
-
You trying it at a debug build, running against debug libs, right?
-
I put a break point at the that I suspect that it causes the breakdown then I pressed F5
-
[quote author="marachli" date="1334589405"]I put a break point at the that I suspect that it causes the breakdown then I pressed F5[/quote]
Can you see somewhere the current call stack?
This gives you typically the opportunity to check where the problem starts in your code even so the crash is in some standard libs.What is the environment and IDE you are using?