Skip to content

Breakpoint is not enabled on reloaded file #662

@ko1

Description

@ko1

Now reloaded file removes the breakpoint.

# a. rb

load './b.rb'
foo

load './b.rb'
foo
# b.rb
def foo
  p 1
end
[master]$ ../../exe/rdbg a.rb
[1, 6] in a.rb
     1|
=>   2| load './b.rb'
     3| foo
     4|
     5| load './b.rb'
     6| foo
=>#0    <main> at a.rb:2
(rdbg) b b.rb:3    # break command
#0  BP - Line (pending)  /mnt/c/ko1/src/rb/ruby-debug/tmp/v44/b.rb:3
(rdbg) c    # continue command
DEBUGGER:  BP - Line  /mnt/c/ko1/src/rb/ruby-debug/tmp/v44/b.rb:3 (call) is activated.
[1, 4] in /mnt/c/ko1/src/rb/ruby-debug/tmp/v44/b.rb
     1|
     2| def foo
=>   3|   p 1
     4| end
=>#0    Object#foo at /mnt/c/ko1/src/rb/ruby-debug/tmp/v44/b.rb:3
  #1    <main> at a.rb:3

Stop by #0  BP - Line  /mnt/c/ko1/src/rb/ruby-debug/tmp/v44/b.rb:3 (call)
(rdbg) c    # continue command
1                                                                                                                      <== DON'T STOP AFTER RELOADED
1

ruby/vscode-rdbg#44

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions