From c54c4871660c704f810d2101903ffd425a49c340 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 28 May 2021 09:23:52 -0700 Subject: [PATCH] docs(build): add more logging hints to the cheatsheet (#6785) --- browser_patches/README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/browser_patches/README.md b/browser_patches/README.md index 0a61461ba9..9f232f59e8 100644 --- a/browser_patches/README.md +++ b/browser_patches/README.md @@ -79,7 +79,11 @@ $ node utils/roll_browser.js chromium 123456 # Cheatsheet -## FireFox +## See browser stdout/stderr + +Set the `DEBUG=pw:browser` environment variable to see it. + +## Firefox #### Stack trace @@ -111,8 +115,18 @@ Module name is a string passed to the `mozilla::LazyLogModule` of the correspond LazyLogModule gHttpLog("nsHttp"); ``` +Inside Juggler, you can use `dump('foo\n')`. + ## WebKit +#### Logging + +Inside Objective-C you can use [NSLog](https://developer.apple.com/documentation/foundation/1395275-nslog). + +``` +NSLog(@"Foobar value: %@", value); +``` + #### Debugging windows In `Source\WTF\wtf\win\DbgHelperWin.cpp` replace