andrew
andrew

Reputation: 2574

How to view call stack of C code called via .Call() in R

Basically it's all in the title. I'm calling C code from R via .Call(). The C code is throwing an error, but using traceback() or options(error=recover), the .Call() function is the farthest I can drill down to. Is there a way to view the C call stack when an error is thrown in the C code?

Upvotes: 2

Views: 202

Answers (1)

Martin Morgan
Martin Morgan

Reputation: 46866

Use gdb (or lldb under clang) to debug C code, perhaps as outlined here

Upvotes: 4

Related Questions