Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile ruby from source with debugging symbols on osx?

I'm trying to compile Ruby from source with debugging symbols. I am not using rbenv or rvm, etc.

I have already tried

./configure optflags="-O0" debugflags="-g3 -ggdb"

To no avail :( (the debugger claims it has no symbols)

Thanks!

like image 853
horseyguy Avatar asked Jan 10 '18 04:01

horseyguy


Video Answer


1 Answers

I figured it out in the end, you do this:

CFLAGS="-O0 -ggdb" ./configure

like image 94
horseyguy Avatar answered Nov 15 '22 04:11

horseyguy