Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: docs/linux_debugging.md

Issue 1316063006: [Docs] Update latest docs per wiki changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/linux_build_instructions.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Tips for debugging on Linux 1 # Tips for debugging on Linux
2 2
3 This page is for Chromium-specific debugging tips; learning how to run gdb is 3 This page is for Chromium-specific debugging tips; learning how to run gdb is
4 out of scope. 4 out of scope.
5 5
6 [TOC] 6 [TOC]
7 7
8 ## Symbolized stack trace 8 ## Symbolized stack trace
9 9
10 The sandbox can interfere with the internal symbolizer. Use `--no-sandbox` (but 10 The sandbox can interfere with the internal symbolizer. Use `--no-sandbox` (but
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 Use the `gdb-add-index` script (e.g. 262 Use the `gdb-add-index` script (e.g.
263 `build/gdb-add-index out/Debug/browser_tests`) 263 `build/gdb-add-index out/Debug/browser_tests`)
264 264
265 Only makes sense if you run the binary multiple times or maybe if you use the 265 Only makes sense if you run the binary multiple times or maybe if you use the
266 component build since most `.so` files won't require reindexing on a rebuild. 266 component build since most `.so` files won't require reindexing on a rebuild.
267 267
268 See 268 See
269 https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/gdb-add-i ndex/chromium-dev/ELRuj1BDCL4/5Ki4LGx41CcJ 269 https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/gdb-add-i ndex/chromium-dev/ELRuj1BDCL4/5Ki4LGx41CcJ
270 for more info. 270 for more info.
271 271
272 Alternatively, specify: 272 You can improve GDB load time significantly at the cost of link time by
273 273 plitting symbols from the object files. In GN, set `use_debug_fission=false` in
274 linux_use_debug_fission=0 274 your "gn args". In GYP add `linux_use_debug_fission=0` to your `GYP_DEFINES`.
275
276 in `GYP_DEFINES`. This improves load time of gdb significantly at the cost of
277 link time.
278 275
279 ## Core files 276 ## Core files
280 277
281 `ulimit -c unlimited` should cause all Chrome processes (run from that shell) to 278 `ulimit -c unlimited` should cause all Chrome processes (run from that shell) to
282 dump cores, with the possible exception of some sandboxed processes. 279 dump cores, with the possible exception of some sandboxed processes.
283 280
284 Some sandboxed subprocesses might not dump cores unless you pass the 281 Some sandboxed subprocesses might not dump cores unless you pass the
285 `--allow-sandbox-debugging` flag. 282 `--allow-sandbox-debugging` flag.
286 283
287 If the problem is a freeze rather than a crash, you may be able to trigger a 284 If the problem is a freeze rather than a crash, you may be able to trigger a
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 [Running layout tests on Linux](layout_tests_linux.md) page. 539 [Running layout tests on Linux](layout_tests_linux.md) page.
543 540
544 If you need to test something with hardware accelerated compositing 541 If you need to test something with hardware accelerated compositing
545 (e.g., compiz), you can use `Xgl` (`sudo apt-get install xserver-xgl`). E.g.: 542 (e.g., compiz), you can use `Xgl` (`sudo apt-get install xserver-xgl`). E.g.:
546 543
547 Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer -screen 1024x768 544 Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer -screen 1024x768
548 545
549 ## Mozilla Tips 546 ## Mozilla Tips
550 547
551 https://developer.mozilla.org/en/Debugging_Mozilla_on_Linux_FAQ 548 https://developer.mozilla.org/en/Debugging_Mozilla_on_Linux_FAQ
OLDNEW
« no previous file with comments | « docs/linux_build_instructions.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698