Changes between Version 8 and Version 9 of WebInspectorDebugging
- Timestamp:
- Jan 11, 2018, 10:45:05 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified WebInspectorDebugging
v8 v9 10 10 defaults write com.apple.Safari WebKitDeveloperExtrasEnabled -bool YES 11 11 defaults write com.apple.Safari WebKitDebugDeveloperExtrasEnabled -bool YES 12 }}}13 14 For the Mac port, set the following defaults to allow inspecting a '''remote''' Web Inspector.15 16 17 {{{18 defaults write com.apple.WebInspector DeveloperExtrasEnabled -bool YES19 12 }}} 20 13 … … 48 41 49 42 50 == Automating Reproduction/Setup Steps51 52 Often when developing a feature or fixing a bug, you need to interact with the UI to reproduce the bug or conditions where a feature is used. Rather than manually clicking UI elements over and over for every iteration, you can script these interactions to happen automatically when the Inspector opens. To do so, edit the body of `WebInspector.runBootstrapOperations()` as defined in `Source/WebInspectorUI/UserInterface/Base/Bootstrap.js`.53 54 TODO: add useful snippets here.55 56 57 43 == Using Logging inside WebInspectorUI 58 44 … … 70 56 71 57 == Force Synchronous TestHarness Output 58 59 Setting `InspectorTest.debug()` will log all inspector protocol traffic and `console.log` output to stderr which can be observed when the test completes or times out. 72 60 73 61 Setting `InspectorTest.forceDebugLogging = true` will force all test output to be emitted via window.alert, which in a LayoutTest will add a message to test output without modifying the test page.