зеркало из https://github.com/github/ruby.git
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:
Родитель
20031f8b74
Коммит
ed5d032ea3
|
@ -427,7 +427,7 @@ class DEBUGGER__
|
||||||
pos = $2
|
pos = $2
|
||||||
if $1
|
if $1
|
||||||
klass = debug_silent_eval($1, binding)
|
klass = debug_silent_eval($1, binding)
|
||||||
file = $1
|
file = File.expand_path($1)
|
||||||
end
|
end
|
||||||
if pos =~ /^\d+$/
|
if pos =~ /^\d+$/
|
||||||
pname = pos
|
pname = pos
|
||||||
|
|
Загрузка…
Ссылка в новой задаче