LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2010, 09:03 PM   #1
SciFi-Bob
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Ubuntu
Posts: 62

Rep: Reputation: 18
Debug info in software


This is to wake up all you developers out there, who work by the rule that debugging code should be removed from the release version.

You probably are wrong!

My point 1: If your application faults, the code to display any error message would execute, and it would not slow down the application in any way. It would certainly be in a if/then/else clause, that never would affect the main program loop anyway, so why not add some more info into it?

My point #2: "The debug level"
Many developers seems to think that they should hide any low-level error messages from users, because they could contain critical data, like passwords and such.

Guess what: WE DON'T CARE, if we just can switch debugging on and off as we please!
I'm perfectly happy if I can get an error message in the syslog, even if it contains a password, if I just can disable the error logging somewhere on a production server, it does not matter.

I'm a software developer myself, and one of the things I usually do in my code, is to create debug routines as often as I can, to resolve my own errors.
Many of you developers out there has such debug routines in your code, but what if the "common user" also could benefit from those, especially when things go wrong.

And, yeah, I know I'm fighting the guys trying to get the size of the Debian/Ubuntu CD's down to a minimum.
Get a grip on reality, and consider DVD instead if it's THAT important.

Just my 10 cents, any comments are welcome..

--
This message was entered after 20+ hours of wasted time debugging failures in nfs4/kerberos and nis on my home LAN without any solution.
 
Old 11-06-2010, 03:54 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
I'm with you.

All my non-noddy scripts a) do logging b) report the output from all failed external commands c) have an option to turn on debugging which prints a function call trace and key values. They are this way because I reckon the lifetime effort involved is less than doing it any other way.
 
  


Reply



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
firefox 1.5.7 outputs debug info nanjil SUSE / openSUSE 2 10-05-2006 05:49 AM
Debug info by inet1 during boot BroX Slackware 4 09-24-2006 10:59 AM
Redirecting debug info to another file subu_s Programming 1 12-07-2004 01:15 PM
rpmbuild without stripping debug info gdaly77 Linux - Software 0 05-27-2004 02:43 PM
redirect debug info raven Linux - General 1 11-20-2002 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration