docs(build): add more logging hints to the cheatsheet (#6785)
This commit is contained in:
parent
d2ab1951fd
commit
c54c487166
|
|
@ -79,7 +79,11 @@ $ node utils/roll_browser.js chromium 123456
|
||||||
|
|
||||||
# Cheatsheet
|
# Cheatsheet
|
||||||
|
|
||||||
## FireFox
|
## See browser stdout/stderr
|
||||||
|
|
||||||
|
Set the `DEBUG=pw:browser` environment variable to see it.
|
||||||
|
|
||||||
|
## Firefox
|
||||||
|
|
||||||
#### Stack trace
|
#### Stack trace
|
||||||
|
|
||||||
|
|
@ -111,8 +115,18 @@ Module name is a string passed to the `mozilla::LazyLogModule` of the correspond
|
||||||
LazyLogModule gHttpLog("nsHttp");
|
LazyLogModule gHttpLog("nsHttp");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Inside Juggler, you can use `dump('foo\n')`.
|
||||||
|
|
||||||
## WebKit
|
## WebKit
|
||||||
|
|
||||||
|
#### Logging
|
||||||
|
|
||||||
|
Inside Objective-C you can use [NSLog](https://developer.apple.com/documentation/foundation/1395275-nslog).
|
||||||
|
|
||||||
|
```
|
||||||
|
NSLog(@"Foobar value: %@", value);
|
||||||
|
```
|
||||||
|
|
||||||
#### Debugging windows
|
#### Debugging windows
|
||||||
|
|
||||||
In `Source\WTF\wtf\win\DbgHelperWin.cpp` replace
|
In `Source\WTF\wtf\win\DbgHelperWin.cpp` replace
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue