Debugging Ruby extensions on Win32

So, has anyone come up with a technique for debugging Ruby extensions
written in C/C++ on Windows while I wasn’t paying attention? I have a
bug that only seems to rear its ugly head when the program’s running
on a Windows box; I can’t reproduce it on Mac OS X or Linux.

i use a logger.

this may help,
Fred Fish's dbug library download | SourceForge.net