From: Eloy D. <elo...@gm...> - 2008-05-23 07:51:02
|
Hi Pierce, You might want to take a look at SACrashReporter, which I wrote for this situation. It catches uncatched ruby exceptions logs them and reraises them. The next time the app launches any new crash logs will be requested to be emailed to the developer via a webservice. http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/ There's some docs in: http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/lib/SACrashReporter.rb And you can take a look at the source of LimeChat to see how it should be integrated in a standard RC application. Especially look at the needed values in Info.plist Cheers, Eloy On 23 mei 2008, at 02:07, Pierce T. Wetter III wrote: > Or really, how do I redirect it? > > > Why: > > So when I'm debugging my rubycocoa app, I always launch it from the > command line because the ruby backtrace is my most useful debugging > tool. > > Recently, I intergrated someone elses crash reporting tool, but so > far, the crash reports aren't useful because they always look like > this: > > 0 libobjc.A.dylib 0x90a59380 objc_msgSend + 16 > 1 com.apple.rubycocoa 0x0004545b rbobj_call_ruby + 1844 > 2 com.apple.rubycocoa 0x000446b0 install_ovmix_hooks + > 5630 > 3 com.apple.rubycocoa 0x00042bc2 > ovmix_register_ruby_method + 2472 > 4 com.apple.Foundation 0x927f1468 - > [NSObject(NSForwardInvocation) forward::] + 469 > > That is, they're objective-C backtraces. > > So what I'd like to do is basically startup my app with stdout > redirected to a file in /tmp, and then if the app crashes, I can have > the crashreporter email that (currently it sends console.log, which > isn't very useful). > > How can I do that easily? > > Pierce > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |