CLOSED FIXED 11367
Inline Breakpoint Editor Improvements: Act III
https://bugs.webkit.org/show_bug.cgi?id=11367
Summary Inline Breakpoint Editor Improvements: Act III
David Smith
Reported 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.
Attachments
See bug description (87.59 KB, patch)
2006-10-20 00:01 PDT, David Smith
timothy: review-
Updated based on comments (95.39 KB, patch)
2006-10-20 10:56 PDT, David Smith
timothy: review+
David Smith
Comment 1 2006-10-20 00:01:04 PDT
Created attachment 11162 [details] See bug description
David Smith
Comment 2 2006-10-20 05:06:42 PDT
The URL is a screenshot of the updated editor
Timothy Hatcher
Comment 3 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.
Timothy Hatcher
Comment 4 2006-10-20 09:28:35 PDT
Add the bug title and URL to the ChangeLog also.
Timothy Hatcher
Comment 5 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.
David Smith
Comment 6 2006-10-20 10:56:30 PDT
Created attachment 11168 [details] Updated based on comments
Timothy Hatcher
Comment 7 2006-10-20 21:48:32 PDT
Landed in r17184.
Timothy Hatcher
Comment 8 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.
Note You need to log in before you can comment on or make changes to this bug.