Skip to content

Commit 017c8ab

Browse files
committed
improved pause command
1 parent c61393a commit 017c8ab

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/ruby-debug-ide/commands/pause.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ def regexp
99
end
1010

1111
def execute
12-
c = get_context(@match[1].to_i)
13-
unless c.respond_to?(:pause)
14-
print_msg "Not implemented"
15-
return
12+
Debugger.contexts.each do |c|
13+
unless c.respond_to?(:pause)
14+
print_msg "Not implemented"
15+
return
16+
end
17+
c.pause
1618
end
17-
c.pause
1819
end
1920

2021
class << self

0 commit comments

Comments
 (0)