chore: added ff cheat sheet

This commit is contained in:
Pavel Feldman 2020-03-04 20:09:05 -08:00 committed by GitHub
parent 11f68bac54
commit a69c85f5f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,15 @@
### Debugging
#### Stack trace
It `mozglue/misc/StackWalk.cpp` add
```c++
#define MOZ_DEMANGLE_SYMBOLS 1
```
In native code use
```c++
nsTraceRefcnt::WalkTheStack(stderr);
```