DCSIMG
How to Debug and Run IronRuby Code From Visual Studio - IronShay

How to Debug and Run IronRuby Code From Visual Studio

This isn't a trivial thing to do until the IronRuby Visual Studio Integration component is out. So here are the steps in order to achieve that:

1. In Visual Studio, click on File-> Open -> Project/Solution

How to Debug and Run IronRuby Code From Visual Studio

2. Select ir.exe from the [IronRuby code directory]\trunk\build\debug (or release, depends on how you've compiled the code)

How to Debug and Run IronRuby Code From Visual Studio

3. Right click ir.exe in Solution Explorer and select Properties

How to Debug and Run IronRuby Code From Visual Studio

4. In Command Arguments, with "-D [path to code file]" where [path to code file] will be the full path to your ruby file.
For example, -D "c:\dev\IronRubyTest\test.rb".

How to Debug and Run IronRuby Code From Visual Studio

That's it! you can debug your IronRuby code file now!

image

This post was greatly inspired by the IronPython solution that was posted by Harry Pierson on his blog.

Enjoy,
Shay.

Published Saturday, December 13, 2008 5:03 AM by shayf

Comments

# Getting Started With Dynamic Languages

I've grouped together some resources and blogs for all of you out there who are willing to start

Sunday, December 14, 2008 10:04 AM by Shay Talks About

# Getting Started With Dynamic Languages

Getting Started With Dynamic Languages

Wednesday, October 27, 2010 11:59 PM by IronShay

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: