LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-12-2004, 02:42 PM   #1
MadCactus
Member
 
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, 02:49 PM   #2
Charalambos
Member
 
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, 03:31 PM   #3
MadCactus
Member
 
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, 03:41 PM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

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


Reply


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 07:03 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
Debugging Evgeny Linux - Networking 1 02-15-2005 01:32 PM
debugging devit Programming 1 02-10-2004 11:49 AM
General Debugging Question Cruelpeace Programming 22 01-30-2003 11:04 AM


All times are GMT -5. The time now is 10:28 AM.

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