|
37 | 37 | opts.separator "" |
38 | 38 | opts.separator "Options:" |
39 | 39 |
|
| 40 | + opts.on("-h", "--host HOST", "Host name used for remote debugging") {|host| options.host = host} |
| 41 | + opts.on("-p", "--port PORT", Integer, "Port used for remote debugging") {|port| options.port = port} |
| 42 | + opts.on("--dispatcher-port PORT", Integer, "Port used for multi-process debugging dispatcher") do |dp| |
| 43 | + options.dispatcher_port = dp |
| 44 | + end |
| 45 | + opts.on('--evaluation-timeout TIMEOUT', Integer,'evaluation timeout in seconds (default: 10)') do |timeout| |
| 46 | + options.evaluation_timeout = timeout |
| 47 | + end |
40 | 48 | Debugger.trace_to_s = false |
41 | 49 | opts.on("--evaluation-control", "trace to_s evaluation") do |
42 | 50 | Debugger.trace_to_s = true |
|
52 | 60 | ENV['INSPECT_TIME_LIMIT'] = limit.to_s |
53 | 61 | end |
54 | 62 |
|
55 | | - opts.on("-h", "--host HOST", "Host name used for remote debugging") {|host| options.host = host} |
56 | | - opts.on("-p", "--port PORT", Integer, "Port used for remote debugging") {|port| options.port = port} |
57 | | - opts.on("--dispatcher-port PORT", Integer, "Port used for multi-process debugging dispatcher") do |dp| |
58 | | - options.dispatcher_port = dp |
59 | | - end |
60 | | - opts.on('--evaluation-timeout TIMEOUT', Integer,'evaluation timeout in seconds (default: 10)') do |timeout| |
61 | | - options.evaluation_timeout = timeout |
62 | | - end |
63 | 63 | opts.on('--stop', 'stop when the script is loaded') {options.stop = true} |
64 | 64 | opts.on("-x", "--trace", "turn on line tracing") {options.tracing = true} |
65 | 65 | opts.on("-l", "--load-mode", "load mode (experimental)") {options.load_mode = true} |
|
0 commit comments