0

A good way to debug Ruby in Windows. (Not a question)

First, I had some trouble debugging Ruby because Interactive Ruby would only install Interactive Ruby. Meaning it will only use one line of code and it is not able to execute an RB or any other Ruby file. However, there is this application for Windows called "Cygwin". Go to cygwin.com and don't install the portable version, because it will be in a tar.gz file and have no executable file. Make sure to include the Ruby debugger. Now open Cygwin terminal and drag the Ruby file in. (Read the comment)

10th Jan 2017, 2:37 PM
PortillTech
PortillTech - avatar
3 ответов
0
Thank you for sharing!
10th Jan 2017, 2:38 PM
Rosen
Rosen - avatar
0
At the very beginning where it has the file, type Ruby.
10th Jan 2017, 2:38 PM
PortillTech
PortillTech - avatar
0
For example, I would put this into cygwin: "ruby /cygdrive/c/Users/PortillTech/Documents/HelloWorld.rb
14th Jan 2017, 9:22 PM
PortillTech
PortillTech - avatar