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•5 months 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•5 months ago
|
This bug still lives and make debugging a lot heavier because of you cant be sure what value is hidden under text "unavailable"
Description
•