[MacRuby] #1005: How could macrubyd be used to debug a Cocoa app?
#1005: How could macrubyd be used to debug a Cocoa app? ------------------------------+--------------------------------------------- Reporter: rap@… | Owner: lsansonetti@… Type: task | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: macrubyd ------------------------------+--------------------------------------------- I'm looking for a way to use macrubyd with a Cocoa app. Is there a way? I understand that macrubyd does not integrate with XCode like GDB, and that I won't be able to click on a line in a source editor to set a breakpoint, or interactively click around in a data inspector. I'm just looking for any way, no matter how rough, to break a Cocoa app's execution at a certain point and then interact with a macrubyd session. -- Ticket URL: <http://www.macruby.org/trac/ticket/1005> MacRuby <http://macruby.org/>
#1005: How could macrubyd be used to debug a Cocoa app? ------------------------------+--------------------------------------------- Reporter: rap@… | Owner: lsansonetti@… Type: task | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: macrubyd ------------------------------+--------------------------------------------- Comment(by isaackearse@…): I think we should try and improve this for the 1.0 release as per this thread: http://lists.macosforge.org/pipermail/macruby- devel/2010-November/006467.html I'm happy to help with this where I can: maybe initially with the macruby interface, testing & docs? -- Ticket URL: <http://www.macruby.org/trac/ticket/1005#comment:1> MacRuby <http://macruby.org/>
#1005: How could macrubyd be used to debug a Cocoa app? ------------------------------+--------------------------------------------- Reporter: rap@… | Owner: lsansonetti@… Type: task | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: macrubyd ------------------------------+--------------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 1.0 Comment: Agree, let's improve the debugger for 1.0. Let's discuss here what we can do to improve the current situation. The thread on the list has a good idea already: {{{ The simple ability to insert a "debugger" statement to trigger ruby-debug to stop and give me a prompt where I can type "User.last.inspect" is a very powerful thing. }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1005#comment:2> MacRuby <http://macruby.org/>
#1005: How could macrubyd be used to debug a Cocoa app? ------------------------------+--------------------------------------------- Reporter: rap@… | Owner: lsansonetti@… Type: task | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: macrubyd ------------------------------+--------------------------------------------- Comment(by isaackearse@…): That sounds like a good place to start, I'm going to dive in and see if I can figure out how to do that. -- Ticket URL: <http://www.macruby.org/trac/ticket/1005#comment:3> MacRuby <http://macruby.org/>
#1005: How could macrubyd be used to debug a Cocoa app? ------------------------------+--------------------------------------------- Reporter: rap@… | Owner: lsansonetti@… Type: task | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: macrubyd ------------------------------+--------------------------------------------- Comment(by isaackearse@…): OK I think that might have been a bit ambitious, I made it as far as debugger.cpp but suddenly got very sleepy around here: https://github.com/MacRuby/MacRuby/blob/trunk/debugger.cpp#L184 :) Any hints are welcome, but I was thinking I might try a smaller feature to start with. One of the features of ruby-debug I really like it is the :autoeval option which behaves much like irb. This could work by passing the command-line option --autoeval to macrubyd and then catching and evaluating any unrecognised commands here: https://github.com/MacRuby/MacRuby/blob/trunk/bin/rubyd#L195 How does that sound? -- Ticket URL: <http://www.macruby.org/trac/ticket/1005#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby