Just to build on https://gist.github.com/DavisVaughan/294b6934ae1f291634534ac952dcfa02, here is what we did in order to get this to work with Devel R.
We created a C file, named zzz.c
in src/main/zzz.c
, and also had to have the following header files in the below order. Then we also had to add a line to the (already existing) makefile, Makefile.in
in src/main/Makefile.in
, where we added a line zzz.c
under SOURCES_C = \
.
Then we did the regular debug stuff:
Sys.getpid()
- Copy pid into LLDB debugger
- Add breakpoint in C code
- Run code to trigger breakpoints