Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > XCode 2.2.1 attaching to ruby process for debugging

Reply
Thread Tools

XCode 2.2.1 attaching to ruby process for debugging

 
 
yue_nicholas@hotmail.com
Guest
Posts: n/a
 
      07-31-2006
Hi,

I am developing an extension for Ruby and wish to debug it using
XCode.

I used mkmf.rb to generate the Makefile to compile the bundle.

The extension works fine, I am adding more complicated features and
would like to use XCode to debug the more complicated bits.

I was able to start irb to exercise the extension and I was able to
attach to the irb process from XCode.

But it does not seems to be honour the breakpoints I set in the
source code.

As a comparison, I am able to attach to the ruby process on Windows
using Visual Studio and when I load and run my extension, it does stop
at the break points I set.

Is there some addition compiler/linker flag I need to set in my
extconf.rb file for XCode to play well with irb? Given that OSX(BSD)
and Linux have similarity, I am wondering if anyone is using an IDE to
debug Ruby extension on Linux, e.g. Eclipse?

BTW, I am writing my extension using C++.

Cheers

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error on Attaching to the process while debugging MalC0de Python 1 08-06-2009 04:51 AM
XCode, Mac OS X, Ruby C Extension Wladjmir Wlj Ruby 5 03-23-2008 10:26 AM
Xcode 3 and Ruby? Guaton Carcass Ruby 1 12-05-2006 09:35 PM
Ruby headers and OS X 10.4.3 & XCode 2.2 Eric Hankinson Ruby 0 11-12-2005 07:55 PM
debugger not automatically attaching aspnet_wp.exe as a debugged process Mark Kamoski ASP .Net 1 08-05-2003 02:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57