Sha256: 2a85f8a3ce235b13fed12cc1a88078fcf16126ffc54a3f4e08cc22b806cb52f3
Contents?: true
Size: 572 Bytes
Versions: 22
Compression:
Stored size: 572 Bytes
Contents
#!/usr/bin/env ruby ## Simple example of attaching to a process and letting it run require 'ragweed' pid = Ragweed::Debuggertux.find_by_regex(/gcalctool/) begin t = Ragweed::Debuggertux.threads(pid) puts "Available pid/tdpids\n" t.each do |h| puts h end puts "Which thread do you want to attach to?" pid = STDIN.gets.chomp.to_i opts = {} opts[:fork] = true ## This flag tells ragweed to trace any forked child processes d = Ragweed::Debuggertux.new(pid, opts) d.attach d.continue catch(:throw) { d.loop } rescue puts "Maybe your PID is wrong?" end
Version data entries
22 entries across 22 versions & 1 rubygems