Sha256: 2a5c2b4636d55e2e175334f22d8696eb8c274696f50086c027507d7f80b36f29
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
require 'byebug/helpers/thread' module Byebug # # Reopens the +thread+ command to define the +switch+ subcommand # class ThreadCommand < Command # # Switches to the specified thread # class SwitchSubcommand < Command include Helpers::ThreadHelper def regexp /^\s* sw(?:itch)? (?: \s* (\d+))? \s*$/x end def execute return puts(help) unless @match[1] context, err = context_from_thread(@match[1]) return errmsg(err) if err display_context(context) context.switch @state.proceed end def short_description 'Switches execution to the specified thread' end def description <<-EOD th[read] sw[itch] <thnum> #{short_description} EOD end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sc_core-0.0.7 | test/dummy/vendor/bundle/ruby/2.2.0/gems/byebug-5.0.0/lib/byebug/commands/thread/switch.rb |
byebug-5.0.0 | lib/byebug/commands/thread/switch.rb |