Skip to content

Conversation

@ko1
Copy link
Collaborator

@ko1 ko1 commented Jul 6, 2022

support reloaded breakpoints

When 'foo.rb' is reloaded, then already set breakponts on 'foo.rb'
is also enabled on reloaded 'foo.rb'.

Note that this is only for the line breakpoints.

fix #662

@ko1 ko1 force-pushed the bp_on_reloaded_files branch from 4cc39b3 to 28c6b1e Compare July 6, 2022 19:06
ko1 added 3 commits July 7, 2022 04:11
DAP's `loadedSource` event will be issued when the file is loaded.
For the pending line breakpoint, `try_activate` is called when
script is compiled and compiled iseq is available. We don't need
to search in ObjectSpace on this case.
When 'foo.rb' is reloaded, then already set breakponts on 'foo.rb'
is also enabled on reloaded 'foo.rb'.

Note that this is only for the line breakpoints.

fix #662
@ko1 ko1 force-pushed the bp_on_reloaded_files branch from 28c6b1e to 410fc5a Compare July 6, 2022 19:11
@ko1 ko1 merged commit 85d29dc into master Jul 6, 2022
@ko1 ko1 deleted the bp_on_reloaded_files branch July 6, 2022 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breakpoint is not enabled on reloaded file

2 participants