I am working on the mirtCAT package in R. I need to debug inside a function in this package called mirtCAT() . Inside this function there are many functions that are written in C ++. I need to see which function takes value. This is why I need to debug the C ++ functions that I am trying to use with gdb. For this, I refer to this document:
http://r-pkgs.had.co.nz/src.html#src-debugging
When I use the R --debugger=gdb command R --debugger=gdb to run R at the command prompt
It starts R, but I think it does not start the gcc compiler.
This is a warning:
unknown parameter '--debugger = gdb'
I changed the environment path variables for the gcc compiler.
Any suggestions anyone has?
PS I also referred to this topic: Debugging (line by line) a DLL created by Rcpp under Windows
Where @Dirk suggests running R with the command R -d gdb
which also does not work, he says:
unknown option '-d' ARGUEMENT 'gdb' is _ignored_
c ++ gcc debugging r gdb
Artiga
source share