Ticket #5 (assigned task)

Opened 2 years ago

Last modified 2 years ago

Demonstrate control of a Ruby script by using the C api

Reported by: atack2 Assigned to: atack2 (accepted)
Priority: critical Milestone: We are Debugging Threads in Some Capacity
Version: v0.5 EOH Show Keywords: control execution ruby demo example
Cc:

Description

The key to being able to debug this language is to be able to use the C interface to control it. This is the reason we chose Ruby and the method we will use to control its execution in the debugger.

The ticket is: demonstrate in code (C++, specifically) an ability to control execution of a ruby script. The example does not need to be interactive.

Change History

01/04/07 11:16:35 changed by atack2

  • status changed from new to assigned.

This ticket will take place in sandbox/embedding_ruby. At present (r3), we can only run a script in its entirety. Ruby is not designed for embedding from C; we might have to make use of ruby-debug (an implementation in C of the standard debug.rb) or ruby-trace. At worst, we can call methods in ruby, working through both languages to get our answer.