SapphireSteel Forum
Welcome,
Guest
. Please
login
or
register
.
May 19, 2013, 12:33:37 PM
1 Hour
1 Day
1 Week
1 Month
Forever
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
3883
Posts in
799
Topics by
669
Members
Latest Member:
m
SapphireSteel Forum
General
Ruby In Steel
How to debug Rails tests?
« previous
next »
Pages:
[
1
]
Author
Topic: How to debug Rails tests? (Read 2353 times)
cortfr
Registered User
Newbie
Posts: 3
How to debug Rails tests?
«
on:
December 16, 2007, 10:26:04 AM »
I'm using Visual Studio 2005 with 01.02.0344 installed.
I've created a rails project... and the VS/Cylon debugger works great when running the server!
But how can I place breakpoints in my Rails tests and then run all of them (or just one) in the debugger?
I looked through all the docs and tried a number of searches on the forum... so forgive me if this has already been discussed.
thanks!
Logged
Huw Collingbourne
Administrator
Hero Member
Posts: 933
Re: How to debug Rails tests?
«
Reply #1 on:
December 16, 2007, 10:58:00 AM »
You can set the entry point to a program in any runnable Ruby file. By default, when debugging a Rails application we debug via the server script. You can disable this behaviour (Project->Options->F5 Starts Ruby = true) so that F5 will debug into whichever Ruby file is currently active in the editor. You cannot, however, debug tests run by Rake as these do not provide an entry point for the debugger. In brief, any tests (indeed any Ruby file at all) that can be run by ruby.exe can be debugged by loading the main file into Ruby In Steel and setting the Project option as mentioned above.
best wishes
Huw
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> News and Announcements
=> Amethyst
=> Ruby In Steel
=> Ruby Programming
=> The Snug Bar