lldb-tools / vim-lldb Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
================= LLDB Vim Frontend ================= Prerequisites ------------- This plugin is known to work with the following flavours of Vim: * Linux (tested on Ubuntu 12.04/12.10): * vim/gvim (from vim-gnome package version 7.3) * macOS (tested on Monterey) * Vim command-line (8.2 from homebrew) * MacVim 7.3 To install the plugin, ensure you have * a working version of lldb on your path, or the environment variable LLDB pointing to the lldb binary you would like to use. * a python3-enabled vim (check with "vim --version | grep python3") Installation ------------ 1) Install the Vim pathogen plugin (it keeps installed plugins organized): https://github.com/tpope/vim-pathogen Or, for the impatient: mkdir -p ~/.vim/autoload ~/.vim/bundle; \ curl -Sso ~/.vim/autoload/pathogen.vim \ https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim 2) Symlink (or copy) ~/.vim/bundle/vim-lldb to this directory: ln -sf <lldb-dir>/utils/vim-lldb ~/.vim/bundle/vim-lldb 3) Update your help-tags. Start vim, do: :Helptags 4) Have fun! Usage/Getting Help ------------------ All LLDB commands (with tab-completion) can be accessed in Vim's command mode. Try it out by typing: :L<tab> There are several sources of help available: :help lldb -- Documentation for this plugin :Lhelp -- LLDB's built-in help system (i.e lldb 'help' command) :Lscript help (lldb) -- Complete LLDB Python API reference
If vim / neovim is installed via brew, it uses python installed from brew, which fails to import lldb from Xcode 12. Example failure:
% /usr/local/Cellar/[email protected]/3.8.5/bin/python3
Python 3.8.5 (default, Aug 31 2020, 13:38:53)
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import lldb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb'
>>> import sys
>>> sys.path.append("/Applications/Xcode-12.0.0-GM2.app/Contents/SharedFrameworks/LLDB.framework/Resourc
es/Python3")
>>> import lldb
Fatal Python error: _PyInterpreterState_Get(): no current thread state
Python runtime state: unknown
zsh: abort /usr/local/Cellar/[email protected]/3.8.5/bin/python3
Is there a way to use this plugin with a vim build that has python3 enabled but not python2? What would need to be changed to make this possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.