Closed Bug 703862 Opened 13 years ago Closed 13 years ago

[scratchpad] errors should be inlined as a comment in the Scratchpad

Categories

(DevTools Graveyard :: Scratchpad, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 690552

People

(Reporter: jwalker, Unassigned)

Details

No description provided.
Enter the following in the scratchpad (I was in browser mode if that's significant) var f = null; f.foo; Clearly that's wrong, but without reference to the Error Console, I can't tell except that none of the execute options appears to do anything. Maybe we could have an error pulldown (like the "This scratchpad executes in the Browser context") which tells you what's wrong.
Component: Developer Tools → Developer Tools: Scratchpad
OS: Mac OS X → All
QA Contact: developer.tools → developer.tools.scratchpad
Hardware: x86 → All
Summary: Scratchpad error → Scratchpad errors are invisible to the Scratchpad UI
Whenever you execute code that fails the Web console opens automatically, or the Error console. I agree it would be a much better UI to add a notification with the error itself. Thanks for the report!
I thought we had a bug on this, but searching doesn't turn anything up. Dupe this if anyone else can find it. We've had multiple requests to inline error messages into the console as comments (the way the "Display" invocation method works now). I think this is a worthwhile thing to do. In practice, using the Scratchpad it's somewhat cumbersome to have to switch between the Error Console or Web Console when you hit an exception. For bonus points, highlighting the appropriate position in the Scratchpad's selection that caused the error to occur would be highly pleasurable, though would accept this as a follow-up.
Summary: Scratchpad errors are invisible to the Scratchpad UI → [scratchpad] errors should be inlined as a comment in the Scratchpad
Whiteboard: [good-first-bug]
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: [good-first-bug]
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.