[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FR-devel] supposed bug in databus.rb ( -w || -d issues)
From: |
gabriele renzi |
Subject: |
[FR-devel] supposed bug in databus.rb ( -w || -d issues) |
Date: |
Sun, 20 Jul 2003 13:43:48 +0200 (CEST) |
[story]
I thougth that 'failing to start plugin' and 'failing
to load plugin' were not really useful
debug statements, so I thought that possibly I could
unlock some other debug info using the -d or
-w switches from the intepreter.
well, you better avoid this :)
[/story]
so I started to mess up the FR code to hide some of
the most noising stuff, mostly uninitialized
vars from databus.rb.
In this journey I discovered that there is an
unreachable statement in line 1000 of
freebase/lib/databus.rb
def remove(key)
return @map.remove[key]
@slot.notify(:notify_map_remove)
end
Now, the core of this message:
Should we bother to have freebase/FR runnning with
$DEBUG=true and warnings enabled ? IMO there
could be lots of subtle bugs to kill this way.
(well, I'm not sure the word 'subtle' exists, but you
got it , I hope..)
More than this, having FR/FB running withouth
linenoise with $DEBUG and warnings enabled would
allow other developers to use this flags when
developing their own code (i.e. plugins for FR pr
aplications using FB).
ATM if someone is going to use -w somewhere he'd get
tons of other warnings unrelated to his own
code..
What do you think about this ?
=====
icq #69488917
______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il
filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
- [FR-devel] supposed bug in databus.rb ( -w || -d issues),
gabriele renzi <=