Erik Chen | 5c80c7a | 2019-08-29 22:48:15 | [diff] [blame] | 1 | # Usage of tools/lldb/lldbinit.py |
| 2 | |
| 3 | Usage of Chromium's [lldbinit.py](../tools/lldb/lldbinit.py) is recommended when |
| 4 | debugging with lldb. This is necessary for source-level debugging when |
Erik Chen | 87a677d | 2019-08-29 22:57:22 | [diff] [blame] | 5 | `strip_absolute_paths_from_debug_symbols` is enabled [this is the default]. |
Erik Chen | 5c80c7a | 2019-08-29 22:48:15 | [diff] [blame] | 6 | |
| 7 | To use, add the following to your `~/.lldbinit` |
| 8 | |
| 9 | ``` |
| 10 | # So that lldbinit.py takes precedence. |
| 11 | script sys.path[:0] = ['<.../path/to/chromium/src/tools/lldb>'] |
| 12 | script import lldbinit |
| 13 | ``` |