From @udomeme @end|ng |rom gm@||@com  Mon Jun  1 23:36:03 2020
From: @udomeme @end|ng |rom gm@||@com (Sue McDonald)
Date: Mon, 1 Jun 2020 16:36:03 -0500
Subject: [Rd] Debugging packages with compiled C code on Windows
Message-ID: <CAOkNWZU8c5NG32h-A-7uA-rqPZRB5dGs61U3pYreFEPJk0eaOg@mail.gmail.com>

I have several related questions.

1.  Is it possible to use a GUI: Rstudio/Eclipse/Visual-studio to debug
compiled code on Windows? Things that work on Eclipse for Windows do not
work on Eclipse for Windows.
2.  R CMD INSTALL seems to override default attempts to provide
CFLAGS="-DDEBUG -g3 -O0"
3.  Is it necessary to compile R with debug turned on?   One of the FAQs
mentioned to compile R with make DEBUG=T.
4.  Using Rtools 4.0 and Jeroen's scripts for building R works great (many
thanks). But does not seem to have an impact on optimization, other than
including -gwarf-2.  It adds -DNDEBUG flag.  Is that sufficient for
debugging compiled code in a package?  Obviously, I just need to debug
package code, so does it matter?

I am happy to write-up a FAQ.

Thanks, SM

	[[alternative HTML version deleted]]



[Rd] Debugging packages with compiled C code on Windows
Sue McDonald