Forum: Ruby Has anyone experience using Xcode to debug a Ruby C extension?

Posted by Robert Buck (rbuck)
on 2012-11-24 14:48
I have a C extension, I use Rakefile with extconf.rb, mkmf, rspec, etc.

I have SEGV's in my C extension and I need to debug the C code.

I am on a Mac.

Does anyone have any instructions on how to spin up Xcode with a rspec
test, and be able set breakpoints in C code?

GDB instructions would be tolerable if that's all we have at our
fingertips.

Brute force with printf is not working for me.

Bob
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.