If your app is executing simple Ruby files it is possible to debug them in VS.
You need to turn on debugging when you create a ScriptRuntime:
var setup = new ScriptRuntimeSetup();
setup.DebugMode = true;
setup.AddRubySetup();
var runtime = Ruby.ScriptRuntime(setup);
runtime.ExecuteFile("foo.rb");
Run your app with attached VS debugger and place breakpoint to foo.rb.
Note that DebugMode slows down execution significantly and is therefore not
quite usable for larger app frameworks (gems, rails, etc.). We don't have any
better debugging experience right now. We are working towards one but it will
take some time.
Tomas
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Santiago Molina
Sent: Thursday, April 29, 2010 3:33 PM
To: [email protected]
Subject: [Ironruby-core] Debugging ironruby code hosted by a c# app
I'm experimenting a little with ironruby and I just want to know if there's any
way to debug ironruby code that is hosted by a c# windows app. Any ideas?
thanks,
Santiago
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
[email protected]<mailto:[email protected]>
http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core