Hi there.
I compiled a C file from R in RStudio with the following 2 lines of code:
system2('R', c('CMD', 'SHLIB', 'My_C_File.c'))
dyn.load(paste0("My_C_File", .Platform$dynlib.ext))
Now, when I run the compiled C code, I have a nasty bug that occurs apparently randomly and crashes RStudio with no explanation on the cause of this crash.
How can I debug my C code from RStudio?