Skip to content

Commit

Permalink
chore(firefox): update cheatsheet with logging instructions (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Mar 31, 2020
1 parent 307b33a commit d0073ef
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions browser_patches/firefox/cheatsheet.md
Expand Up @@ -13,3 +13,16 @@ In native code use
```c++
nsTraceRefcnt::WalkTheStack(stderr);
```

If the stack trace is still mangled `cat` it to `tools/rb/fix_linux_stack.py`

#### [Logging](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Gecko_Logging)

```bash
MOZ_LOG=nsHttp:5
```
Module name is a string passed to the `mozilla::LazyLogModule` of the corresponding component, e.g.:

```c++
LazyLogModule gHttpLog("nsHttp");
```

0 comments on commit d0073ef

Please sign in to comment.