summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 2216f3a4df..a8a41ef978 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -300,7 +300,9 @@ class DEBUGGER__
when /^\s*b(?:reak)?\s+((?:.*?+:)?.+)$/
pos = $1
if pos.index(":")
- file, pos = pos.split(":")
+ pos = pos.split(":")
+ file = pos[0...-1].join(":")
+ pos = pos[-1]
end
file = File.basename(file)
if pos =~ /^\d+$/