Skip to content

Commit ffc6324

Browse files
committed
Add command to enable logging in the docs
https://bugs.webkit.org/show_bug.cgi?id=229419 Reviewed by Dean Jackson. * Introduction.md: Canonical link: https://commits.webkit.org/240958@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 6197a28 commit ffc6324

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2021-08-25 Myles C. Maxfield <mmaxfield@apple.com>
2+
3+
Add command to enable logging in the docs
4+
https://bugs.webkit.org/show_bug.cgi?id=229419
5+
6+
Reviewed by Dean Jackson.
7+
8+
* Introduction.md:
9+
110
2021-08-20 Carlos Alberto Lopez Perez <clopez@igalia.com>
211

312
REGRESSION(r274166): [GTK] It broke run-javascriptcore-tests causing all tests to use lot of memory

Introduction.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,12 +1427,14 @@ WEBKIT_DEBUG=Scrolling Tools/Scripts/run-minibrowser --gtk --debug
14271427

14281428
### macOS
14291429

1430-
On macOS, you can supply these strings with these terminal commands:
1430+
On macOS, you can, for example, enable the `Language` log channel with these terminal commands:
14311431

14321432
```
1433-
% defaults write com.apple.WebKit.WebContent WTFLogging "Threading"
1434-
% defaults write com.apple.WebKit.WebContent WebCoreLogging "WebGL"
1435-
% defaults write com.apple.WebKit.WebContent WebKit2Logging "ResourceLoadStatistics"
1433+
for identifier in com.apple.WebKit.WebContent.Development com.apple.WebKit.WebContent org.webkit.MiniBrowser com.apple.WebKit.WebKitTestRunner org.webkit.DumpRenderTree -g /Users/$USER/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist; do
1434+
for key in WTFLogging WebCoreLogging WebKitLogging WebKit2Logging; do
1435+
defaults write ${identifier} "${key}" "Language"
1436+
done
1437+
done
14361438
```
14371439

14381440
You may also need to specify these strings to `com.apple.WebKit.WebContent.Development`, the global domain, or the Safari container, depending on what you're running.

0 commit comments

Comments
 (0)