Debugging c++
Hi
Im having some trouble debugging a c++ program im writing, more specifically, im getting a segmentation fault when i run it in VIDE's debugger. I googled the segfaults, so i know what the problem is, but i have no idea where, as the debugger only seem to give me a memory address.
Can anyone give me some advice/point me to a good place where i can learn about using the debugger? Or maybe some other way to solve my problem.
Thanks
/sok
I'm not sure what platform you are using and I don't know VIDE but I'd suggest getting a decent debugger which points you to the correct line in your code (alternatively perhaps VIDE can be configured to do just that) and lets you watch the values of the variables.
Greetz,
Illco
Greetz,
Illco
Debugging in 3 easy steps:
1) compile your app with debugging infos
2) run it with the debugger enabled
3) take a look at the call stack, the error usually is caused by code that calls the stuff where the error actually happens
1) compile your app with debugging infos
2) run it with the debugger enabled
3) take a look at the call stack, the error usually is caused by code that calls the stuff where the error actually happens
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement