Skip to content

Python script to visualize Odin builtin data structures in LLDB

Notifications You must be signed in to change notification settings

thetarnav/odin-lldb

Repository files navigation

Odin LLDB script

Python script to visualize Odin slices, maps, strings, etc. in LLDB.

Based on the work of harold-b and laytan.

Installation

Refer to https://gist.github.com/laytan/a94c323a84cef7bcfbdf6d21987fd5a9?permalink_comment_id=5036057#gistcomment-5036057

Development

Running tests

To run the tests locally:

./test.py

LLDB Python Module

To point the Python LSP extension to the LLDB module.

  1. Get the path to the LLDB Python module:
echo "$(lldb --python-path)/lldb"
  1. Add the path to your VSCode settings:
{
	"python.analysis.extraPaths": [
		"/usr/lib/llvm-17/lib/python3.12/site-packages/lldb"
	],
}

Resources

About

Python script to visualize Odin builtin data structures in LLDB

Topics

Resources

Stars

Watchers

Forks

Sponsor this project