Falsy values on watch list are displayed as "(unavailable)" text which consufses
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: mowod66703, Unassigned)
Details
Attachments
(1 file)
|
1.12 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Steps to reproduce:
I added few different values to evaluate and watch into debuggers watch list, some of them have falsy values (0,false,''`)
Actual results:
Falsy values on watch list are displayed as (unavailable) text which confuses developer
Expected results:
These values should be displayed with original values (number 0, boolean false, string '') and not evaluable (due to error) values need to show as (unavailable)
Comment 1•1 year ago
|
||
Interestingly, null and undefined don't show up as unavailable.
Issue might be coming from https://searchfox.org/mozilla-central/rev/3b59c739df66574d94022a684596845cd05e7c65/devtools/client/debugger/src/utils/expressions.js#48-50
In general, it's not clear when "unavailable" makes sense, as opposed to showing a clearer value (even if there is an error, we could at least show the error name?)
Updated•1 year ago
|
This bug still lives and make debugging a lot heavier because of you cant be sure what value is hidden under text "unavailable"
Comment 3•8 months ago
|
||
This is a duplicate of Bug 1952622 which is fixed in Nightly.
(In reply to Holger Benl from comment #3)
This is a duplicate of Bug 1952622 which is fixed in Nightly.
*** This bug has been marked as a duplicate of bug 1952622 ***
Hi
Do you see dates of tickets? newer ticket (https://bugzilla.mozilla.org/show_bug.cgi?id=1952622) is duplicate and you closed this which is 7 month older, instead of new one. please, look carefully what is original and what is duplicate.
Comment 5•8 months ago
|
||
(In reply to esprigde from comment #4)
Do you see dates of tickets? newer ticket (https://bugzilla.mozilla.org/show_bug.cgi?id=1952622) is duplicate and you closed this which is 7 month older, instead of new one. please, look carefully what is original and what is duplicate.
I noticed this ticket only after I had fixed the newer one.
Sometimes Im shocked how long are fixed seems like simple things...
Description
•