How to debug an R package (with C code) in Emacs using GDB?

后端 未结 2 1372
后悔当初
后悔当初 2021-02-05 11:51

I am currently writing an R package and using compiled C++ code through the Rcpp package in R (Rcpp makes the interaction of R and C++ code easier for a non-program

2条回答
  •  不知归路
    2021-02-05 12:32

    It's not all that easy, unfortunately. You need to jump between ESS, gdb (ie gud in Emacs) and R. The best description is probably still win Writing R Extensions, however there was a recent thread on the ESS mailing list that discusses this too (and note that some replies came in outside the thread so do look at the mailing list archive too).

提交回复
热议问题