Debugging c++

Started by
2 comments, last by sokken 18 years, 4 months ago
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
Cake for me, please.
Advertisement
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
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
Thanks for the reply :)

I'll try it once i get the silly makefile to work with the debug mode..
Cake for me, please.

This topic is closed to new replies.

Advertisement