How to run the rails console in debug mode in Aptana Radrails
In Apatana Rad Rails, I want to run the rails console in debug mode. When I launch the debugger as shown below, debugger doesn't honor the break points.
debug script/console
I am able to run th开发者_高级运维e rake tasks in debug mode by giving a similar command, i.e.
debug rake db:migrate
Any pointers will be highly appreciated.
Seems like you're running RadRails 2. You might be able to get it to work correctly by right-clicking the script/console file and choosing Debug As > Ruby Application. The "Rails console" had some special hacks and contortions to handle commands like "debug rake ...", but under the hood it's doing the same as the Debug As action above and then tying the input/output to the console view.
精彩评论