Bug 11367 - Inline Breakpoint Editor Improvements: Act III
Summary: Inline Breakpoint Editor Improvements: Act III
Status: CLOSED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Enhancement
Assignee: Nobody
URL: http://dscoder.com/breakpoints/shiny.png
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 00:00 PDT by David Smith
Modified: 2008-05-17 09:56 PDT (History)
0 users

See Also:


Attachments
See bug description (87.59 KB, patch)
2006-10-20 00:01 PDT, David Smith
timothy: review-
Details | Formatted Diff | Diff
Updated based on comments (95.39 KB, patch)
2006-10-20 10:56 PDT, David Smith
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2006-10-20 00:00:28 PDT
Stuff the attached patch does:

        • Breakpoints can now either pause or log to console
        • Code cleanup through use of XPath and converting breakpoints to objects
        • Breakpoints now track how many times they've been reached
        • UI tweaks
        • The breakpoint editor now saves changes as they're entered
        • Because changes are auto-saved now, the save button has been converted to a close button (images from PSMTabBarControl, BSD licensed)
        • If an expression with no return is entered as a condition, it will be wrapped transparently with a return statement.
Comment 1 David Smith 2006-10-20 00:01:04 PDT
Created attachment 11162 [details]
See bug description
Comment 2 David Smith 2006-10-20 05:06:42 PDT
The URL is a screenshot of the updated editor
Comment 3 Timothy Hatcher 2006-10-20 09:27:36 PDT
Comment on attachment 11162 [details]
See bug description

Looks good.

Some comments:

Make the bullets in the ChangeLog asterisks.

Remove the white background and border on the .hitCounter.

Make sure you didn't break the console history now that we can log msgs without expressions. IIRC the history relied on childNode indices.

+    while(!node.hasStyleClass(className))
+    {

Our style puts the { on the same line as while.

+        if(node == document) return null;

Our style puts the "return null;" on the next line. Also a space after the if.

The same same firstParentWithClass code in viewer.html.

new Function("toggleBreakpointEditorOnLine(parseInt(event.target.title));")

This can be written as:

function () { toggleBreakpointEditorOnLine(parseInt(event.target.title)); }

+    if(breakpoint && breakpoint.enabled) {
+                if(shouldBreak)
+                if(breakpoint.value != "break")
+                if(consoleWindow)
+        if(editor)
+        if(counter)

Add a space after the if.
Comment 4 Timothy Hatcher 2006-10-20 09:28:35 PDT
Add the bug title and URL to the ChangeLog also.
Comment 5 Timothy Hatcher 2006-10-20 09:29:31 PDT
I don;t think the parseInt() is needed also. JavaScript will convert to int or string as needed.
Comment 6 David Smith 2006-10-20 10:56:30 PDT
Created attachment 11168 [details]
Updated based on comments
Comment 7 Timothy Hatcher 2006-10-20 21:48:32 PDT
Landed in r17184.
Comment 8 Timothy Hatcher 2008-05-17 09:56:00 PDT
Closing since Drosera has been replaced by the new Web Inspector debugger. Moving to the New Bugs component so the Drosera component can be closed and removed.