From: Lothar Scholz Date: 2004-09-17T23:04:59+09:00 Subject: Re: Debugging wxruby programs. Hello R., RC> Zach Dennis wrote in message RC> news:<4149A41C.8020203@mktec.com>... >> R. Cheung wrote: >> >> >Hi, >> > >> >I'm new to Ruby. I'd like to debug my wxruby applications (in Windows >> >XP). What's the best way to do this? I tried putting in 'print' >> >statements and hoping to get some output on the command window. I >> >invoke the ruby application by typing 'rubyw ttc.rbw' in the command >> >window, which of course, does not work. I also tried 'ruby ttc.rbw' >> >but I get: >> > >> > app.rbw:3:in `require': No such file to load -- wxruby (LoadError) >> > from app.rbw:3 >> > >> >I'd very much appreciate some hints. >> > >> > >> > >> Do you have wxruby installed? You can download the latest windows >> installer from here: >> >> http://rubyforge.org/frs/?group_id=35 >> >> HTH, >> >> Zach RC> Hi, RC> Yes, I've installed both ruby and wxruby. The problem I have is that RC> if the app fails to start, it is sometimes due to syntax errors and RC> sometimes due to runtime errors (e.g. a nil member variable, etc.). RC> Without a DOS/Command window, firstly, I've no idea if it's a syntax RC> error, secondly, even if it does start, I can't use 'print' to print RC> out debugging statements to help me find out where I got to and what RC> went wrong (OK, I can open an auxilliary window and write to that, but RC> I could lose that window if the app dies). How do you experts debug RC> wxruby apps? Any help would be appreciated. Maybe you want to try Arachno Ruby. It works perfectly with wxRuby. You can download it from www.ruby-ide.com -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's