[R] Debugging R Code
Hi all, is there a more convenient way to debug R code than the built in debug() function? (so that one can set breakpoints, step in and out of function calls,...). I read the section on debugging compiled code in the manual Writing R Extensions (I only want to debug ordinary code but thought that maybe the advice there could help), but didn't find out how I can start debugging my code after typing R -d gdb, which brought me to the gdb prompt (I'm using R 1.6.2 in xemacs via ESS). Thanks, Tobias __ Tobias Sing Computational Biology Group Max-Planck-Institut für Informatik Stuhlsatzenhausweg 85 66123 Saarbrücken, Germany Phone: +49 681 9325 314 Fax: +49 681 9325 399 E-mail: [EMAIL PROTECTED] WWW: http://www.mpi-sb.mpg.de/units/ag3/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Debugging R Code
hello, the new library debug contains such possibilities and has a nice tcl/tk interface. Read the description of that library in the last volume of R-news (volume 3/3, december 03, p.29) hope this help, dlc Hi all, is there a more convenient way to debug R code than the built in debug() function? (so that one can set breakpoints, step in and out of function calls,...). I read the section on debugging compiled code in the manual Writing R Extensions (I only want to debug ordinary code but thought that maybe the advice there could help), but didn't find out how I can start debugging my code after typing R -d gdb, which brought me to the gdb prompt (I'm using R 1.6.2 in xemacs via ESS). Thanks, Tobias __ Tobias Sing Computational Biology Group Max-Planck-Institut für Informatik Stuhlsatzenhausweg 85 66123 Saarbrücken, Germany Phone: +49 681 9325 314 Fax: +49 681 9325 399 E-mail: [EMAIL PROTECTED] WWW: http://www.mpi-sb.mpg.de/units/ag3/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Debugging R Code
Maybe try Mark Bravingtons's debug package? (see article in last R news) is there a more convenient way to debug R code than the built in debug() function? (so that one can set breakpoints, step in and out of function calls,...). I read the section on debugging compiled code in the manual Writing R Extensions (I only want to debug ordinary code but thought that maybe the advice there could help), but didn't find out how I can start debugging my code after typing R -d gdb, which brought me to the gdb prompt (I'm using R 1.6.2 in xemacs via ESS). Thanks, Tobias __ Tobias Sing Computational Biology Group Max-Planck-Institut für Informatik Stuhlsatzenhausweg 85 66123 Saarbrücken, Germany Phone: +49 681 9325 314 Fax: +49 681 9325 399 E-mail: [EMAIL PROTECTED] WWW: http://www.mpi-sb.mpg.de/units/ag3/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Debugging R Code
If you plan using Mark Bravingtons's debug package within emacs via ess you should read this: https://www.stat.math.ethz.ch/pipermail/ess-help/2004-February/001708.html were Mark suggested that in emacs you should set options( debug.command.recall=FALSE)' before running the debugger. Cheers, Angel - Original Message - From: Tobias Sing [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 12:08 PM Subject: [R] Debugging R Code Hi all, is there a more convenient way to debug R code than the built in debug() function? (so that one can set breakpoints, step in and out of function calls,...). I read the section on debugging compiled code in the manual Writing R Extensions (I only want to debug ordinary code but thought that maybe the advice there could help), but didn't find out how I can start debugging my code after typing R -d gdb, which brought me to the gdb prompt (I'm using R 1.6.2 in xemacs via ESS). Thanks, Tobias __ Tobias Sing Computational Biology Group Max-Planck-Institut für Informatik Stuhlsatzenhausweg 85 66123 Saarbrücken, Germany Phone: +49 681 9325 314 Fax: +49 681 9325 399 E-mail: [EMAIL PROTECTED] WWW: http://www.mpi-sb.mpg.de/units/ag3/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html