From: cheungr@... (R. Cheung) Date: 2004-09-17T16:24:48+09:00 Subject: Re: Debugging wxruby programs. Zach Dennis wrote in message 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 Hi, Yes, I've installed both ruby and wxruby. The problem I have is that if the app fails to start, it is sometimes due to syntax errors and sometimes due to runtime errors (e.g. a nil member variable, etc.). Without a DOS/Command window, firstly, I've no idea if it's a syntax error, secondly, even if it does start, I can't use 'print' to print out debugging statements to help me find out where I got to and what went wrong (OK, I can open an auxilliary window and write to that, but I could lose that window if the app dies). How do you experts debug wxruby apps? Any help would be appreciated. Thanks again, RC