IronRuby Nuget Package in Visuel Studio: IronRuby.Builtins.LoadError: 'no such file to load -- byebug'

I haven’t downloaded IronRuby only the Nuget Package that’s available in Visuel Studio.

I have a Ruby file that I want an object out of. But it keeps coming up with mistakes about the: "require ‘fields like byebug and openssl’ " that I have.

string code = @“C:\Users\pas\Documents\Ruby.vscode\ResearchJira1.rb”;
var runtime = IronRuby.Ruby.CreateRuntime();
var engine = runtime.GetEngine(“rb”);
var scope = engine.ExecuteFile(code);

I’ve tried this also.

string code = @“C:\Users\pas\Documents\Ruby.vscode\ResearchJira1.rb”;
var runtime = IronRuby.Ruby.CreateRuntime();
var engine = runtime.GetEngine(“rb”);
engine.Execute(“require ‘byebug’”);
var scope = engine.ExecuteFile(code);

I’ve also tried setting up engine.SetSearchPaths up, but I’m not really sure what paths I should set them up to.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs