Closed
Bug 813087
Opened 12 years ago
Closed 5 years ago
Debugger statement in Scratchpad
Categories
(DevTools Graveyard :: Scratchpad, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: espadrine, Unassigned)
References
Details
Attachments
(1 file)
1.49 KB,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce: 1. Open the Browser Debugger. 2. Open the Scratchpad. 3. Paste the following bit of code in there: (function foo(a, b) { var c = a + b; debugger; return c; }(1, 2)); 4. Run it. What I expected: The Browser Debugger should show the contents of the Scratchpad. What happens instead: The Browser Debugger shows the following content for "Scratchpad/1": "Loading…" It starts debugging. The stacks are displayed correctly. Yet, no JS is displayed.
Comment 1•12 years ago
|
||
This is because scratchpad uses evalInSandbox, passing a dummy Scratchpad/n filename and a line number of 1. We did this to make console.log and friends look intuitive to web developers who don't know about Firefox internals. Perhaps now the Browser Debugger provides a compelling argument for sending the correct source location, and maybe getting the web console to convert "scratchpad.js:330" to "Scratchpad:1" if we think it's important.
Component: Developer Tools: Debugger → Developer Tools: Scratchpad
Comment 2•12 years ago
|
||
Here is a patch to try out. Note that it breaks bug 661762 as it is.
Updated•11 years ago
|
Priority: -- → P3
Comment 4•11 years ago
|
||
cc'ing Eddy. I think he mentioned taking a look at this during the work week.
Updated•7 years ago
|
Severity: normal → enhancement
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 5•5 years ago
|
||
Scratchpad was removed in Bug 1519103 (Firefox 72). You can check the alternative in https://wiki.developer.mozilla.org/en-US/docs/Tools/Deprecated_tools#Scratchpad .
The Scratchpad bug list was reviewed and I think this bug can be safely closed.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Updated•4 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•