Skip to content
Prev 53027 / 63421 Next

Debugging tools and practices in Windows?

I have not tried this in several years, but inside the Makefiles of the R source code, the following will replace the (non)debugging flags with debugging flags.


This (still) may or may not work ...


find . -type f -name 'M*k*' -exec sed -i 's/-O3/-O0 -ggdb3/g' {} \;
find . -type f -name 'M*k*' -exec sed -i 's/-O2/-O0 -ggdb3/g' {} \;
find . -type f -name 'M*k*' -exec sed -i 's/-shared/-shared -O0 -ggdb3/g' {} \;

I was sort of fresh at the this debugging when I started gdb debugging and time has passed by, so the recommended (current) 'R on windows' compiler flags can be found in the g++ documentation for the correct g++ used to compile the current R on Windows.

Andre Mikulec
Andre_Mikulec at Hotmail.com
Message-ID: <DM5PR15MB167638FCFE26716AD2E5FC339C520@DM5PR15MB1676.namprd15.prod.outlook.com>
In-Reply-To: <CAF5kcVW3NEYydeqT1XKfsDdortHwo2YiKxWO4EBa8ej6OxHgRQ@mail.gmail.com>