RESOLVED FIXED151175
Web Inspector: Add Debug toolbar button to toggle InspectorBackend.dumpInspectorProtocolMessages
https://bugs.webkit.org/show_bug.cgi?id=151175
Summary Web Inspector: Add Debug toolbar button to toggle InspectorBackend.dumpInspec...
Joseph Pecoraro
Reported 2015-11-11 19:06:00 PST
* SUMMARY Add Debug toolbar button to toggle InspectorBackend.dumpInspectorProtocolMessages. I find myself toggling this many many times a day. Having a UI button to toggle this would be much better. * NOTES - Toolbar button should be debug only, not included in Production (minified) builds
Attachments
[PATCH] Proposed Fix (5.17 KB, patch)
2015-11-11 19:11 PST, Joseph Pecoraro
joepeck: commit-queue-
[IMAGE] Debug Toolbar Button (Active) (28.67 KB, image/png)
2015-11-11 19:11 PST, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (8.27 KB, patch)
2015-11-11 20:46 PST, Joseph Pecoraro
bburg: review+
bburg: commit-queue-
[PATCH] For Landing (8.29 KB, patch)
2015-11-11 21:35 PST, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2015-11-11 19:06:26 PST
Joseph Pecoraro
Comment 2 2015-11-11 19:11:08 PST
Created attachment 265350 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 3 2015-11-11 19:11:58 PST
Created attachment 265351 [details] [IMAGE] Debug Toolbar Button (Active)
Joseph Pecoraro
Comment 4 2015-11-11 19:19:46 PST
Comment on attachment 265350 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=265350&action=review > Source/WebInspectorUI/UserInterface/Debug/Bootstrap.jsSource/WebInspectorUI/UserInterface/Base/Bootstrap.js:44 > + WebInspector.showDebugInspectorToolbarButtonSetting = new WebInspector.Setting("show-debug-inspector-toolbar-button", false); > + WebInspector.showDebugInspectorToolbarButtonSetting.addEventListener(WebInspector.Setting.Event.Changed, function() { Brian wants to make this a keyboard shortcut to enable all debug features. Something like (Shift+Option+Cmd+D). That seems fine to me. I'll make a new patch.
Joseph Pecoraro
Comment 5 2015-11-11 20:46:55 PST
Created attachment 265357 [details] [PATCH] Proposed Fix
Blaze Burg
Comment 6 2015-11-11 21:30:14 PST
Comment on attachment 265357 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=265357&action=review r=me, thanks. > Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js:30 > + WebInspector.showDebugUI = new WebInspector.Setting("show-debug-ui", false); > + new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.Option | WebInspector.KeyboardShortcut.Modifier.Shift | WebInspector.KeyboardShortcut.Modifier.CommandOrControl, "D", function() { > + WebInspector.showDebugUI.value = !WebInspector.showDebugUI.value; Please suffix = Setting > Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js:38 > + debugInspectorToolbarButton.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, function() { use arrow function
Joseph Pecoraro
Comment 7 2015-11-11 21:35:16 PST
Created attachment 265360 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 8 2015-11-11 22:33:53 PST
Comment on attachment 265360 [details] [PATCH] For Landing Clearing flags on attachment: 265360 Committed r192351: <http://trac.webkit.org/changeset/192351>
Note You need to log in before you can comment on or make changes to this bug.