Terminal debugging with lldb and voltron
I really enjoy using the terminal. I wanted to learn how to debug from it and decided to give lldb a try. After asking google a lot of questions I found snare/voltron . Voltron looks amazing and makes debugging with lldb a lot more visual.
Here is a screenshot of lldb debugging of a simple hello world program with Voltron
After getting this setup, I went back to work on an app on XCode, and realized that I had broken it. My simulator would lock up and I would have to force quit XCode.
I removed Voltron from my ~/.lldbinit config file and got it working again. The secret to get Voltron and XCode working along with each other is in the man lldb pages:
If you are using the lldb command line interface, this is ~/.lldbinit-lldb . If you
are using lldb inside a GUI debugger like Xcode this will be
~/.lldbinit-Xcode . This is a useful place to put settings that you want
to apply only when a given lldb command interpreter is used.
So I created a new ~/.lldbinit-lldb file and wrote the Voltron init line there. Win!
Run Voltron only for the command line lldb:
# Change to your voltron install location command script import ..installLocation/voltron/entry.py