When you create the ScriptRuntimeSetup, do this:

setup.Debug = true;

That will tell the DLR to generate debuggable code.

________________________________
From: ironruby-core-boun...@rubyforge.org [ironruby-core-boun...@rubyforge.org] 
on behalf of Ivan Porto Carrero [i...@flanders.co.nz]
Sent: Monday, March 23, 2009 12:32 PM
To: ironruby-core
Subject: [Ironruby-core] Debugging ruby code in a host

Hi

With my IronRubyMVC implementation I'm far enough to figure out that I need to 
be able to put breakpoints in my ruby code :)
Now the question is how, because I think I tried all of the ways that are 
described in the wiki but had no success. I have a debug version of IronRuby 
and I'm using it in a C# ASP.NET<http://ASP.NET> MVC project with the 
System.Web.Mvc.IronRuby dll as a reference. The web application hosts the 
scriptruntime etc. Now what do I need to do to make visual studio break on the 
breakpoint I define?

In merging the latest git pushes into the linux branch I've seen a pdb 
generator does that mean I can actually get to more meaningful stack traces 
etc. again the question how springs to mind? :)

Thanks
Ivan

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to