Closed Bug 1280503 Opened 8 years ago Closed 7 years ago

debugger doesn't show "false" result from function

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1326837

People

(Reporter: tromey, Unassigned)

Details

Consider this function:

function returnFalse() {
  return false;
}


Set a breakpoint in the function and invoke it.
Now click "step in" until the end of the function.
The debugger should pause twice at the end of the function.
The second pause should display the return value.
However, when the return value is "false", as it is here, it
is not displayed.

I think it's fine to not display "undefined", but it seems to me that
"false" should be displayed.
I agree Tom. We probably have a check for 'falsy' somewhere, that should be an explicit check for 'undefined' instead. Dynamic typing for the win, eh? ;-)

This looks like a papercut to me, so marking as P3.
Priority: -- → P3
A dup and the newer bug has better STR.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.