Ok it works when I use
Engine.RequireRubyFile("C:\path\to\file\controller.rb")
but not when i use a custom streamcontent provider that knows how to deal
with virtual paths.like http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/VirtualPathStreamContentProvider.cs Anyway I'll take the stream content providers out and just put something in that handles mappath to allow debugging. But now the question becomes When would I want to use a StreamContentProvider and when should I have to create a PAL ? Would using a PAL be a better idea to when hosting it in a webserver? 2009/3/23 Tomas Matousek <[email protected]> > The file you are setting breakpoint to needs to exists on the disk for > Visual Studio debugger to work. > > > > Tomas > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, March 23, 2009 2:14 PM > *To:* [email protected] > *Subject:* Re: [Ironruby-core] Debugging ruby code in a host > > > > Yes.. I'll try again.. maybe I missed something. > I should really say that the file that has the ruby code is an assembly > resource that gets read through an AssemblyReaderStreamContentProvider. > Should I be providing that content differently? > > > http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/RubyEngine.cs#L352 > > I use http://gist.github.com/74979 to set a breakpoint. > > > > 2009/3/23 Tomas Matousek <[email protected]> > > Is DebugMode property of the ScriptRuntimeSetup of the ScriptRuntime you > run the script in set to *true*? > > > > Tomas > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Ivan Porto Carrero > *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 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 > [email protected] > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ironruby-core > >
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
