SapphireSteel Forum
Welcome, Guest. Please login or register.
May 25, 2013, 01:49:02 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Ruby In Steel and Amethyst IDEs
3884 Posts in 800 Topics by 669 Members
Latest Member: m
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Ruby In Steel
| | |-+  About Cylon debugger
« previous next »
Pages: [1] Print
Author Topic: About Cylon debugger  (Read 1970 times)
objectref
Newbie
*
Posts: 3


« on: May 26, 2010, 05:43:48 AM »

Hi,

i just downloaded and installed the trial edition of "Ruby-in-Steel", the ability to use a world-class IDE like VS to run Ruby/Rails projects is really awesome!

So, i have also installed the latest (1.9.1) version of Ruby and i saw here http://www.sapphiresteel.com/Ruby-In-Steel-1-5-Released
that "Ruby In Steel ?Developer Edition? 1.5 provides integrated edit-and-run capabilities for Ruby 1.8.x, Ruby 1.9.x" but the Cyclon debugger supports only v. 1.8

So, i, naturally, get the error:
"Cylon initialization failed('Unable to load DLL 'SteelCylon.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F). This is normally due to an incorrect version of Ruby beeing installed"

I went to Options and disabled the (fast) Cylon debugger but now i have no debugger at all!

My questions are:

1. What is the timeframe that Cylon will support the 1.9.x version of the Ruby language ?
2. Until then, can i use 1.2.x but with another (slow) debugger ??

Thanks a lot for any help!
Logged
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 934



« Reply #1 on: May 26, 2010, 06:25:08 AM »

I would advise that you use Ruby 1.8 or JRuby to debug your projects with Cylon and use Ruby 1.9 for running. You can set up a Build configuration for this: http://www.sapphiresteel.com/Ruby-In-Steel-1-5-Build

We have no immediate plans for dedicated Ruby 1.9 debugging support ( see here for a few relevant comments on this: http://www.infoq.com/news/2010/02/ruby-in-steel-15 ).

Best wishes

Huw
Logged
objectref
Newbie
*
Posts: 3


« Reply #2 on: May 26, 2010, 06:32:02 AM »

Hmm...i imagine that this is cumbersome somehow, i.e. to switch all the time between 2 configurations but i suppose i can live with that.

Anyway, thanks for the help!

I would advise that you use Ruby 1.8 or JRuby to debug your projects with Cylon and use Ruby 1.9 for running. You can set up a Build configuration for this: http://www.sapphiresteel.com/Ruby-In-Steel-1-5-Build

We have no immediate plans for dedicated Ruby 1.9 debugging support ( see here for a few relevant comments on this: http://www.infoq.com/news/2010/02/ruby-in-steel-15 ).

Best wishes

Huw
Logged
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 934



« Reply #3 on: May 26, 2010, 06:34:34 AM »

To switch configs you just pick from the drop-down Configuration name in the VS Toolbar. It's the same system you may already use when switching between Release and Debug in C#, say.
Logged
objectref
Newbie
*
Posts: 3


« Reply #4 on: May 26, 2010, 06:53:02 AM »

To switch configs you just pick from the drop-down Configuration name in the VS Toolbar. It's the same system you may already use when switching between Release and Debug in C#, say.

Yes indeed, i already do this in C# (there is a way to not doing even this and when pressing F5 start debug mode and F6 release, aytomatically). I follow the link you gave me. Does this configuration-stuff have to be specified for EVERY new project i make ?
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1005


« Reply #5 on: May 26, 2010, 03:01:17 PM »

Hello,

There is a way to configure the default project template, but it's a bit clunky.

Edit the file 'C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Templates\Projects\Empty Ruby Project.stproj' (make a backup first).

line 52 should be:
    <SteelVersion>1.2</SteelVersion>

after this line add:
    <RubyInterpreter>c:\ruby\bin\my-ruby-debug.exe</RubyInterpreter>

or whatever the Ruby interpreter should be. Save the file and when you next create a project the debug ruby interpreter will be set to that.

You can set a configuration dependent property by doing the same under the Debug property group (say):

  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
    <RubyInterpreter>c:\ruby\bin\ruby-debugzz.exe</RubyInterpreter>

It's not exactly a state-of-the-art technique, but it works for me (just tried it). You can do the same for any other property that you want to make a default - just generate a new project, cofigure it, save the project, unload it, edit the project file and cut and paste from there into the template.

Dermot

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!