# Debugging with Test::Unit

**URL:** <https://www.ruby-forum.com/t/debugging-with-test-unit/136209>\
**Category:** Ruby\
**Created:** [April 29, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/debugging-with-test-unit/136209 "2008-04-29T20:41:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowbird122](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Post date:** [April 29, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/debugging-with-test-unit/136209/1 "2008-04-29T20:41:30Z")

</div>

I’d like to use a debugger (‘debug’, ‘ruby-debug’, or even irb) with  
Test::Unit. So far, the standard ‘debug’ seems to work best with  
Test::Unit, but breakpoints don’t seem to work very well (compared to  
‘ruby-debug’). ‘debug’ works because it seems to stop whenever an  
exception  
is raised (independent of whether it is rescued). ‘ruby-debug’ seems to  
have more capability though (and breakpoints seem to work). From what I  
can  
tell, one of these solutions would work:

- ruby-debug: have a way to stop whenever an exception is raised
- debug: breakpoints need to work more reliably
- test/unit: don’t rescue AssertionFailedError

How do others use a debugger with Test::Unit?
