From: Alex Fenton Date: 2008-09-24T22:49:50+09:00 Subject: Re: Debugging Ruby Core Lex Williams wrote: > Alex Fenton wrote: >> Saladin Mundi wrote: >> >>> is there a debugger which I could use for debugging the C-Core if I >>> modify it? >> There's nothing special about Ruby's C core. You can use whatever >> debugger goes with the compiler you use, eg Microsoft's debugging tools >> if compiled with MSVC; gdb if compiled with gcc (although I've found gdb >> on MingW / Windows pretty unstable). > > But , in order to do this ( with gdb ) , shouldn't ruby be recompiled > with -g ? Or that option is already set ? -g flag to gcc is needed, but recompilation isn't always going to be necessary. The last time I built ruby (MingW, 1.9.0-4) gcc got the options "-g -O2" without having to do anything special, just "./configure; make" Distro / vendor supplied rubies will vary in how they're compiled. a