From: Ryan Davis Date: 2007-04-10T06:44:57+09:00 Subject: Re: Ruby C extension crash: how to create a stack trace? On Apr 6, 2007, at 11:20 , barabba wrote: > Hi, > > I am using ruby to test and develop my legacy C code. I packed it > inside a ruby extension as dll under windows. I am using visual > studio 6 to debug my extension. > The process works very well, but when I make a mistake in my C code > ruby abort without stack trace and it is difficult for me to find the > reason. I haven't done any MS development in over a decade (happily), so maybe I'm just missing something. This is how I get a BT on OSX/ FreeBSD when I'm debugging my extensions: % gdb ruby > r my_script.rb my_args .... go boom > bt ... backtrace with hopefully useful information Can you not do that from the MS debugger???