LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Debugging question (https://www.linuxquestions.org/questions/programming-9/debugging-question-216814/)

MadCactus 08-12-2004 02:42 PM

Debugging question
 
When theres a bug with no logical reason for existing, and you've triple checked everything, how do you go about removing it?

Charalambos 08-12-2004 02:49 PM

Using a debugging tool such as the GNU-Debugger gdb for c.
With its help you can go step by step through the program and eventually find the bug you're looking for.

MadCactus 08-12-2004 03:31 PM

I know whats wrong, but not why :)

kev82 08-12-2004 03:41 PM

by MadCactus
I know whats wrong, but not why

if that statement is true then there are only 2 reasons(that i can think of)

a) you misunderstand something that you know is happenning
b) something is happenning that you dont know about.

try taking the particular code that doesnt work and running/testing it in a seperate environment outside the rest of your program.


All times are GMT -5. The time now is 08:07 AM.