Open Bug 1917973 Opened 5 months ago Updated 2 months ago

Falsy values on watch list are displayed as "(unavailable)" text which consufses

Categories

(DevTools :: Debugger, defect, P2)

Firefox 130
defect

Tracking

(Not tracked)

People

(Reporter: mowod66703, Unassigned)

Details

Attachments

(1 file)

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)

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?)

Severity: -- → S3
Priority: -- → P2
Status: UNCONFIRMED → NEW
Ever confirmed: true

This bug still lives and make debugging a lot heavier because of you cant be sure what value is hidden under text "unavailable"

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: