Changes between Version 5 and Version 6 of WebInspectorDebugging


Ignore:
Timestamp:
May 17, 2016 10:49:38 AM (6 years ago)
Author:
BJ Burg
Comment:

Instructions about debug logging for WKTR

Legend:

Unmodified
Added
Removed
Modified
  • WebInspectorDebugging

    v5 v6  
    6666Using `console.log` and friends in the inspector interface's code will log messages in the next-level inspector.
    6767However, both will be interleaved if you enable output to the system console as above.
     68
     69== Logging to System Console/stderr While Running Tests
     70
     71This is basically the same as above, except that the defaults domain is different. Since the test executable WebKitTestRunner resets its domain defaults on every run, you must set logging defaults globally. This is not recommended for other purposes since it may cause unrelated WebKit instances to log lots of messages.
     72
     73{{{
     74defaults write -g "com.apple.Safari.ContentGroupPageIdentifier.WebKit2LogsPageMessagesToSystemConsoleEnabled" -bool YES
     75defaults write -g WebKitLogsPageMessagesToSystemConsoleEnabled -bool YES
     76defaults write -g WebKitDebugLogsPageMessagesToSystemConsoleEnabled -bool YES
     77}}}