Closed Bug 1613221 Opened 2 years ago Closed 2 years ago

console only shows last call to print() within evaluation

Categories

(DevTools :: Console, defect)

73 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: me, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

type print(1); print(2); print(3); into devtools console

Actual results:

The console only printed out "3"

Expected results:

It should've printed out 1 and then 2 and then 3.

Has STR: --- → yes
Component: Untriaged → Console
Product: Firefox → DevTools

print is a helper function so it's not specified, and it won't work as console.log for example.
Could you tell us what you are using it for?

Harald, what should we do with print and pprint ? That's something Chrome does not have, and I don't see a strong reason to use that over console.log.

Flags: needinfo?(me)
Flags: needinfo?(hkirschner)

Seems like it is not covered by tests, no special benefit over console.log and non-standard legacy code – LGTM for removing them.

Flags: needinfo?(hkirschner)
Depends on: 1613845
Depends on: 1613846

helper was removed

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(me)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.