Jump to content
  • Advertisement
Sign in to follow this  
sokken

Debugging c++

This topic is 4594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!