mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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
|
||||
|
||||
## 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user