9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/ruby-debug/commands/settings.rb', line 9
def execute
case @match[1]
when /^(no)?autolist$/
ListCommand.always_run = $1.nil?
print "Listing is #{$1.nil? ? 'on' : 'off'}.\n"
when /^(no)?autoeval$/
EvalCommand.unknown = $1.nil?
print "Evaluation of unrecognized command is #{$1.nil? ? 'on' : 'off'}.\n"
when /^(no)?trace$/
@@display_stack_trace = $1.nil?
print "Display stack trace is #{$1.nil? ? 'on' : 'off'}.\n"
else
print "Unknown setting.\n"
end
end
|