diff --git a/browser_patches/firefox/cheatsheet.md b/browser_patches/firefox/cheatsheet.md new file mode 100644 index 0000000000..02321e3a6d --- /dev/null +++ b/browser_patches/firefox/cheatsheet.md @@ -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); +```