Skip to content

Commit da3e2a2

Browse files
committed
show activated line breakpoint
1 parent 4490a17 commit da3e2a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/debug/breakpoint.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def initialize path, line, cond: nil, oneshot: false, hook_call: true, command:
103103

104104
super()
105105
try_activate
106+
107+
@pending = !@iseq
106108
end
107109

108110
def setup
@@ -140,9 +142,10 @@ def activate iseq, event, line
140142

141143
@key = [@path, @line].freeze
142144
SESSION.rehash_bps
143-
144145
setup
145146
enable
147+
148+
DEBUGGER__.warn "#{self} is activated." if @pending
146149
end
147150

148151
def activate_exact iseq, events, line

0 commit comments

Comments
 (0)