Closed Bug 584672 Opened 14 years ago Closed 12 years ago

JSTerm evaluation output needs truncation

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(blocking2.0 -)

RESOLVED FIXED
Firefox 19
Tracking Status
blocking2.0 --- -

People

(Reporter: msucan, Assigned: msucan)

References

Details

(Keywords: uiwanted, Whiteboard: [console-1][fixed by bug 787981])

Attachments

(1 file)

Attached image screenshot
At the moment, the result of the evaluation of any expression is not truncated, which can lead to really big results being displayed in the WebConsole output. We need to limit the output for each result.

To reproduce:

- Open www.robodesign.ro
- Open the WebConsole
- Type in the input: wf2_datalist
- Press Enter.

Expected result: I see a line or two from the wf2_datalist function source.

Actual result: The entire function source code is displayed.

I attached a screenshot to show how the result is displayed.
blocking2.0: --- → ?
Sucks if you actually want to see the full output instead of the cauterized form, though.
(In reply to comment #1)
> Sucks if you actually want to see the full output instead of the cauterized
> form, though.

True, but for that there's bug 573103. Once that is done, I presume we will be able to click on evaluation results to see the complete output if we desire.
This is not a blocker - doesn't break or regress primary browser features.

I'm also not convinced truncation is desirable. I'd prefer immediate access to the output and scrolling through it, over truncation and having to click to see.
blocking2.0: ? → -
(In reply to comment #3)
> This is not a blocker - doesn't break or regress primary browser features.
> 
> I'm also not convinced truncation is desirable. I'd prefer immediate access to
> the output and scrolling through it, over truncation and having to click to
> see.

Agreed, however, it may eventually be something that is confugrable, as some JSD objects will no doubt be immense. Back burner for sure.
This bug makes me think we need pretty printed JS outputted to the console more than truncation - although truncation is a good idea if used via a pref.
Whiteboard: [console-1]
Component: Developer Tools → Developer Tools: Console
QA Contact: developer.tools → developer.tools.console
This is likely to be fixed by inline object inspection.
However might still be a problem for strings such as document.body.innerHTML
After a loong time. :)
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
Depends on: 787981
Whiteboard: [console-1] → [console-1][fixed when bug 787981 lands]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [console-1][fixed when bug 787981 lands] → [console-1][fixed by bug 787981]
Target Milestone: --- → Firefox 19
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: