Is there a way to reload a .lldbinit file, without rebuilding the app? Similar to what one can do with gdb as follows:
source ~/.gdbinit
Loading a Program into lldb First we need to set the program to debug. As with gdb, you can start lldb and specify the file you wish to debug on the command line: $ lldb /Projects/Sketch/build/Debug/Sketch. app Current executable set to '/Projects/Sketch/build/Debug/Sketch.
In lldb you can set breakpoints by typing either break or b followed by information on where you want the program to pause. After the b command, you can put either: a function name (e.g., b my_subroutine )
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.
Use command source
.
(lldb) command source ~/.lldbinit
If you are loading a Python file,
(lldb) command script import ~/lldb/bbt.py
although note that you cannot re-import a function that you've already imported in an lldb debug session; when refining a python script you'll need to quit & restart the debugger to try new versions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With