Closed Bug 1917973 Opened 1 year ago Closed 8 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)

RESOLVED DUPLICATE of bug 1952622

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"

This is a duplicate of Bug 1952622 which is fixed in Nightly.

Status: NEW → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1952622
Resolution: --- → DUPLICATE

(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.

(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...

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

Attachment

General

Creator:
Created:
Updated:
Size: