Re: where is the right place to ask RubyCocoa on Xcode related question
Re: where is the right place to ask RubyCocoa on Xcode related question
- Subject: Re: where is the right place to ask RubyCocoa on Xcode related question
- From: Dmitry Markman <email@hidden>
- Date: Tue, 23 Jun 2009 23:13:44 -0400
ok, here is what I found
I was working with SimpleApp from the /Developer/Examples/Ruby/
RubyCocoa/SimpleApp/
first of all build the application
so you will have /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/
Development/SimpleApp.app app bundle
from command line
gdb
file /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/Development/
SimpleApp.app/Contents/MacOS/SimpleApp
r -r debug
you'll stop in rdb mode:
(rdb:1)
now you can set break point like
b /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/Development/
SimpleApp.app/Contents/Resources/AppController.rb:18
I have no experience with rdb at all
so maybe there is a shortest way to set breakpoint and to tell rdb
about default sources e.t.c.
so I'm using COpy/Paste technique :-)
anyway it really stops in the debugger
here is a full transcript:
(gdb) file build/Development/SimpleApp.app/Contents/MacOS/SimpleApp
Reading symbols for shared libraries ..... done
Reading symbols from /Developer/Examples/Ruby/RubyCocoa/SimpleApp/
build/Development/SimpleApp.app/Contents/MacOS/SimpleApp...done.
(gdb) r -r debug
Starting program: /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/
Development/SimpleApp.app/Contents/MacOS/SimpleApp -r debug
Reading symbols for shared libraries +++
+
......................................................................... done
Reading symbols for shared libraries ... done
Debug.rb
Emacs support available.
/Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/Development/
SimpleApp.app/Contents/Resources/rb_main.rb:5:require 'osx/cocoa'
(rdb:1) b /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/
Development/SimpleApp.app/Contents/Resources/AppController.rb:18
Set breakpoint 1 at /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/
Development/SimpleApp.app/Contents/Resources/AppController.rb:18
(rdb:1) b
Breakpoints:
1 /Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/Development/
SimpleApp.app/Contents/Resources/AppController.rb:18
(rdb:1) c
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Breakpoint 1, awakeFromNib at /Developer/Examples/Ruby/RubyCocoa/
SimpleApp/build/Development/SimpleApp.app/Contents/Resources/
AppController.rb:18
/Developer/Examples/Ruby/RubyCocoa/SimpleApp/build/Development/
SimpleApp.app/Contents/Resources/AppController.rb:18:
@window.setOpaque(false)
(rdb:1)
_______________________________________________
in theory you can do that from Xcode
1. open Executable properies, go to the argument tab
2 add argument -r debug
so when you start
you'll see that application stopped in the rdb (open debug console)
problem is that you can not copy/paste YOU CAN ONLY USE A KEYBOARD and
is very very inconvinient
unless there is a way to configure debug console to understand paste
from the clipboard
I noticed Debug Console behavior in my other projects, but at least
there user script worked some how
here nothing works - only keyboard is the source
On Jun 23, 2009, at 4:31 AM, Nava Carmon wrote:
Hi
Seems really few people have dealt with this configuration on this
xcode list.
I have a rubycocoa Xcode project, which I can't debug using gdb. I
followed instructions on RubyCocoa.org on how to build a bebug
version of ruby and rubycoca and still it didn't help and i can't
set breakpoints in ruby sources (.rb files).
Is there something in project settings that has to be changed in
order to make this working?
Thanks,
Nava
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden