WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED FIXED
12983
Web Inspector break on the debugger keyword
https://bugs.webkit.org/show_bug.cgi?id=12983
Summary
Web Inspector break on the debugger keyword
Darrell Esau
Reported
2007-03-06 09:38:15 PST
Adding "debugger;" to javascript acts as a breakpoint in most other JS debuggers -- it doesn't seem to work in Drosera. Any reason this isn't implemented?
Attachments
A simple test case.
(504 bytes, text/html)
2007-04-19 14:28 PDT
,
Darrell Esau
no flags
Details
Patch-fu!
(12.68 KB, patch)
2008-06-03 04:36 PDT
,
Oliver Hunt
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darrell Esau
Comment 1
2007-04-19 14:28:25 PDT
Created
attachment 14095
[details]
A simple test case. How to use this test case: Open Drosera, attach to the Safari/WebKit process then open the attached HTML file. Click on the contained link. After the first alert is displayed, Drosera should break at the debugger keyword.
Mark Rowe (bdash)
Comment 2
2008-02-08 22:43:17 PST
***
Bug 17232
has been marked as a duplicate of this bug. ***
Mark Rowe (bdash)
Comment 3
2008-02-08 22:43:44 PST
<
rdar://problem/5732833
>
Brett Fattori
Comment 4
2008-02-26 07:08:27 PST
This is important since most times the debugger does not know about files that are yet to be loaded.
Timothy Hatcher
Comment 5
2008-05-17 09:23:14 PDT
Still applies to the new Web Inspector debugger, moving to that component.
Oliver Hunt
Comment 6
2008-06-03 04:36:53 PDT
Created
attachment 21475
[details]
Patch-fu!
Timothy Hatcher
Comment 7
2008-06-03 06:54:40 PDT
Comment on
attachment 21475
[details]
Patch-fu! I would recommend "Breakpoint" instead of "BreakPoint" to match the inspector and Xcode. +// about to leave a stack frame (i.e. return from a function) +- (void)webView:(WebView *)webView didReachBreakPoint:(WebScriptCallFrame *)frame Also that comment is not correct for the method you added.
Geoffrey Garen
Comment 8
2008-06-03 10:50:34 PDT
Please don't add the WebKit debug delegate callback. The WebKit debug delegate's only client is DashCode, and it doesn't listen for the message you've added. Generally, the WebKit debug delegate is deprecated. I'd rather leave its bits completely frozen.
Oliver Hunt
Comment 9
2008-06-03 15:49:56 PDT
Committing to
http://svn.webkit.org/repository/webkit/trunk
... M JavaScriptCore/ChangeLog M JavaScriptCore/VM/CodeBlock.cpp M JavaScriptCore/VM/Machine.cpp M JavaScriptCore/VM/Machine.h M JavaScriptCore/kjs/debugger.h M JavaScriptCore/kjs/grammar.y M JavaScriptCore/kjs/nodes.cpp M JavaScriptCore/kjs/nodes.h M JavaScriptCore/kjs/nodes2string.cpp M WebCore/ChangeLog M WebCore/page/JavaScriptDebugServer.cpp M WebCore/page/JavaScriptDebugServer.h M WebKit/mac/ChangeLog M WebKit/mac/WebView/WebScriptDebugger.h M WebKit/mac/WebView/WebScriptDebugger.mm Committed
r34351
Darrell Esau
Comment 10
2008-06-03 19:13:51 PDT
Awesome! Can't wait to try this out. Thanks Oliver!
Darrell Esau
Comment 11
2008-06-05 13:32:32 PDT
Verified - works great. Thanks again.
Johan Lund
Comment 12
2008-07-23 02:14:00 PDT
It works but not for code that has been read in with eval. :( I will log a separate request to support evaled code.
Johan Lund
Comment 13
2008-07-24 00:27:11 PDT
The new related bug report is:
https://bugs.webkit.org/show_bug.cgi?id=20139
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug