Sign in to follow this  
sokken

Debugging c++

Recommended Posts

sokken    122
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

Share this post


Link to post
Share on other sites
Illco    928
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

Share this post


Link to post
Share on other sites
Trap    684
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this