Method: Byebug::ThreadCommand::ListCommand#execute

Defined in:
lib/byebug/commands/thread/list.rb

#executeObject



32
33
34
35
36
37
38
39
40
# File 'lib/byebug/commands/thread/list.rb', line 32

def execute
  contexts = Byebug.contexts.sort_by(&:thnum)

  thread_list = prc("thread.context", contexts) do |context, _|
    thread_arguments(context)
  end

  print(thread_list)
end