RESOLVED WORKSFORME 20683
Script Debugger is partly paused, partly not when stopping at a breakpoint in eval()'d code.
https://bugs.webkit.org/show_bug.cgi?id=20683
Summary Script Debugger is partly paused, partly not when stopping at a breakpoint in...
Emanuele Vulcano
Reported 2008-09-06 00:40:15 PDT
When the Script Debugger has a breakpoint set in eval()'d code, stopping at that breakpoint leaves the debugger window in an undesirable "mixed" state. Parts of it think it's paused (notably the step controls at the top right of the window, which report 'Paused'), while other parts think it's not (notably the Scope Variables and Call Stack views, which report "Not Paused", and the current line indication highlight, which isn't shown). Step-in, step-out, step-over and continue controls work, but not having the current line highlight makes them hard to use. A minimal test case: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title></title> </head> <body> <script> eval("window.someFunction = function() {\nalert('Hello, world!');\n};"); </script> <button onclick="window.someFunction();">Test script</button> </body> </html> To trigger the bug, do the following: 1. Open the page and enable the Script Debugger. 2. From the debugger file list, choose "(program)" to see the eval'd code listing. 3. Place a breakpoint in line 2 of the listing. 4. Click the button in the page. (This bug makes debugging cappuccino.org scripts rather difficult, unfortunately.)
Attachments
The test case as a discrete file. (284 bytes, text/html)
2008-09-06 00:41 PDT, Emanuele Vulcano
no flags
A screenshot of the Script Debugger exhibiting the bug. (70.86 KB, image/png)
2008-09-06 00:41 PDT, Emanuele Vulcano
no flags
Emanuele Vulcano
Comment 1 2008-09-06 00:41:07 PDT
Created attachment 23211 [details] The test case as a discrete file.
Emanuele Vulcano
Comment 2 2008-09-06 00:41:51 PDT
Created attachment 23212 [details] A screenshot of the Script Debugger exhibiting the bug.
Note You need to log in before you can comment on or make changes to this bug.