I came across an annoying bug in firebug. If there is a global variable with the same name as a local variable then firebug does not correctly show the value of the local variable in the tooltips and the watch window.
The most annoying thing is that it has been reported several months ago, but still no fix.
UPDATE: Confirmed Fixed in 1.2 on FF3.