Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save breakpoints in LLDB

How can I save breakpoints in lldb? This is a feature that gdb has and I suspect that lldb has it too but I haven't been able to find it in the help.

How this is done in gdb:

Getting gdb to save a list of breakpoints?

like image 619
Praxeolitic Avatar asked Jul 08 '14 17:07

Praxeolitic


1 Answers

You can you use breakpoint write to save current breakpoints to a file by using

breakpoint write -f debug

This saves your breakpoints to file 'debug'. However the saved breakpoints are not in a simple format compared to that of gdb.

You can read this file with breakpoint read -f debug when you start lldb.

The file is stored as a JSON, so you can read it in your text editor of choice. You can put the file wherever you want so instead of debug, you could do use ~/Desktop/myFilename.json

like image 129
Vidya Avatar answered Oct 05 '22 00:10

Vidya