mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
debug.rb: expand filenames in breakpoints
When debugging some local code, specifying a breakpoint to a local
filename does not work, i.e.
break lib/foo.rb:10
Expanding the filename makes it work. FWIW byebug has the same behavior.
This commit is contained in:
parent
20031f8b74
commit
ed5d032ea3
Notes:
git
2019-12-05 13:28:57 +09:00
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ class DEBUGGER__
|
|||
pos = $2
|
||||
if $1
|
||||
klass = debug_silent_eval($1, binding)
|
||||
file = $1
|
||||
file = File.expand_path($1)
|
||||
end
|
||||
if pos =~ /^\d+$/
|
||||
pname = pos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue