docs(build): add more logging hints to the cheatsheet (#6785)

This commit is contained in:
Max Schmitt 2021-05-28 09:23:52 -07:00 committed by GitHub
parent d2ab1951fd
commit c54c487166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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