https://github.com/thetarnav/odin-lldb
Python script to visualize Odin builtin data structures in LLDB
https://github.com/thetarnav/odin-lldb
debugging lldb odin
Last synced: 9 months ago
JSON representation
Python script to visualize Odin builtin data structures in LLDB
- Host: GitHub
- URL: https://github.com/thetarnav/odin-lldb
- Owner: thetarnav
- Created: 2025-07-11T20:15:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-21T18:33:22.000Z (11 months ago)
- Last Synced: 2025-10-04T01:52:45.725Z (9 months ago)
- Topics: debugging, lldb, odin
- Language: Python
- Homepage:
- Size: 156 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Odin LLDB script
Python script to visualize Odin slices, maps, strings, etc. in LLDB.
Based on the work of [harold-b](https://gist.github.com/harold-b/ef16a5c3ebcceccfc2bc7a5c5dd0058d) and [laytan](https://gist.github.com/laytan/a94c323a84cef7bcfbdf6d21987fd5a9).
## Installation
Refer to https://gist.github.com/laytan/a94c323a84cef7bcfbdf6d21987fd5a9?permalink_comment_id=5036057#gistcomment-5036057
## Development
### Running tests
To run the tests locally:
```bash
./test.py
```
### LLDB Python Module
To point the Python LSP extension to the LLDB module.
1. Get the path to the LLDB Python module:
```bash
echo "$(lldb --python-path)/lldb"
```
2. Add the path to your VSCode settings:
```jsonc
{
"python.analysis.extraPaths": [
"/usr/lib/llvm-17/lib/python3.12/site-packages/lldb"
],
}
```
### Resources
- https://lldb.llvm.org/use/variable.html
- https://melatonin.dev/blog/how-to-create-lldb-type-summaries-and-synthetic-children-for-your-custom-types