# Ruby\_debug bug: breakpoint may break in inappropriate files

**URL:** <https://www.ruby-forum.com/t/ruby-debug-bug-breakpoint-may-break-in-inappropriate-files/149567>\
**Category:** Ruby\
**Created:** [September 26, 2008, 10:12am UTC](https://www.ruby-forum.com/t/ruby-debug-bug-breakpoint-may-break-in-inappropriate-files/149567 "2008-09-26T10:12:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddlc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e79b87/32.png) [@toddlc](https://www.ruby-forum.com/u/toddlc)\
**Post date:** [September 26, 2008, 10:12am UTC](https://www.ruby-forum.com/t/ruby-debug-bug-breakpoint-may-break-in-inappropriate-files/149567/1 "2008-09-26T10:12:26Z")

</div>

FYI, I have encountered the following bug with ruby\_debug breakpoints:

A breakpoint will break in any file being executed for which the current  
line number matches the breakpoint line number and the breakpoint  
filename is a suffix of the filename of the file being executed.

Thus, e.g., if a breakpoint is set for “server”, the breakpoint will  
incorrectly break if the designated line number is encountered in  
“httpserver”.

I have submitted a bug report to the project at RubyForge with a  
suggested fix.

-Todd
