Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-12-2004, 03:42 PM   #1
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Rep: Reputation: 30
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?
Old 08-12-2004, 03:49 PM   #2
Registered: Aug 2004
Location: Switzerland
Distribution: debian
Posts: 149

Rep: Reputation: 15
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.
Old 08-12-2004, 04:31 PM   #3
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Original Poster
Rep: Reputation: 30
I know whats wrong, but not why
Old 08-12-2004, 04:41 PM   #4
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
fortran debugging question with g77 and gdb miasmak Programming 1 08-16-2006 08:03 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 11:33 AM
Debugging Evgeny Linux - Networking 1 02-15-2005 02:32 PM
debugging devit Programming 1 02-10-2004 12:49 PM
General Debugging Question Cruelpeace Programming 22 01-30-2003 12:04 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration