![]() |
![]() +- Save-Point (https://www.save-point.org) +-- Forum: Official Area (https://www.save-point.org/forum-3.html) +--- Forum: Tech Talk (https://www.save-point.org/forum-87.html) +--- Thread: ![]() |
Problem With Ruby IRB - Kain Nobel - 12-19-2021 Good day everybody, I've just upgraded to a new computer and am setting everything up like I used to have it. For the life of me I cannot find the answer I'm looking for. Ruby has been reinstalled and I forget how to handle IRB errors without the window closing in a split second. Does anybody know how to make it where the Ruby IRB window stays open until I close it? I need to see my error backtrace. RE: Problem With Ruby IRB - kyonides - 12-19-2021 (12-19-2021, 01:30 PM)Kain Nobel Wrote: Good day everybody, ![]() One way is the hard way, to open the console window first and then type the whole path to your file. ![]() ![]() Another one could be to type the following line of code: Code: irb -r ./filename.rb Also you could add this to a begin rescue loop as well: Code: system("PAUSE") ![]() ![]() RE: Problem With Ruby IRB - Kain Nobel - 12-20-2021 Ah, thank you Kyonides! Code: begin Works great! Thanks! |