Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../opt/alt/ruby22/lib64/ruby/2.2.0
File: debug.rb
# Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
[0] Fix | Delete
# Copyright (C) 2000 Information-technology Promotion Agency, Japan
[1] Fix | Delete
# Copyright (C) 2000-2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
[2] Fix | Delete
[3] Fix | Delete
require 'continuation'
[4] Fix | Delete
[5] Fix | Delete
if $SAFE > 0
[6] Fix | Delete
STDERR.print "-r debug.rb is not available in safe mode\n"
[7] Fix | Delete
exit 1
[8] Fix | Delete
end
[9] Fix | Delete
[10] Fix | Delete
require 'tracer'
[11] Fix | Delete
require 'pp'
[12] Fix | Delete
[13] Fix | Delete
class Tracer # :nodoc:
[14] Fix | Delete
def Tracer.trace_func(*vars)
[15] Fix | Delete
Single.trace_func(*vars)
[16] Fix | Delete
end
[17] Fix | Delete
end
[18] Fix | Delete
[19] Fix | Delete
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__ # :nodoc:
[20] Fix | Delete
[21] Fix | Delete
##
[22] Fix | Delete
# This library provides debugging functionality to Ruby.
[23] Fix | Delete
#
[24] Fix | Delete
# To add a debugger to your code, start by requiring +debug+ in your
[25] Fix | Delete
# program:
[26] Fix | Delete
#
[27] Fix | Delete
# def say(word)
[28] Fix | Delete
# require 'debug'
[29] Fix | Delete
# puts word
[30] Fix | Delete
# end
[31] Fix | Delete
#
[32] Fix | Delete
# This will cause Ruby to interrupt execution and show a prompt when the +say+
[33] Fix | Delete
# method is run.
[34] Fix | Delete
#
[35] Fix | Delete
# Once you're inside the prompt, you can start debugging your program.
[36] Fix | Delete
#
[37] Fix | Delete
# (rdb:1) p word
[38] Fix | Delete
# "hello"
[39] Fix | Delete
#
[40] Fix | Delete
# == Getting help
[41] Fix | Delete
#
[42] Fix | Delete
# You can get help at any time by pressing +h+.
[43] Fix | Delete
#
[44] Fix | Delete
# (rdb:1) h
[45] Fix | Delete
# Debugger help v.-0.002b
[46] Fix | Delete
# Commands
[47] Fix | Delete
# b[reak] [file:|class:]<line|method>
[48] Fix | Delete
# b[reak] [class.]<line|method>
[49] Fix | Delete
# set breakpoint to some position
[50] Fix | Delete
# wat[ch] <expression> set watchpoint to some expression
[51] Fix | Delete
# cat[ch] (<exception>|off) set catchpoint to an exception
[52] Fix | Delete
# b[reak] list breakpoints
[53] Fix | Delete
# cat[ch] show catchpoint
[54] Fix | Delete
# del[ete][ nnn] delete some or all breakpoints
[55] Fix | Delete
# disp[lay] <expression> add expression into display expression list
[56] Fix | Delete
# undisp[lay][ nnn] delete one particular or all display expressions
[57] Fix | Delete
# c[ont] run until program ends or hit breakpoint
[58] Fix | Delete
# s[tep][ nnn] step (into methods) one line or till line nnn
[59] Fix | Delete
# n[ext][ nnn] go over one line or till line nnn
[60] Fix | Delete
# w[here] display frames
[61] Fix | Delete
# f[rame] alias for where
[62] Fix | Delete
# l[ist][ (-|nn-mm)] list program, - lists backwards
[63] Fix | Delete
# nn-mm lists given lines
[64] Fix | Delete
# up[ nn] move to higher frame
[65] Fix | Delete
# down[ nn] move to lower frame
[66] Fix | Delete
# fin[ish] return to outer frame
[67] Fix | Delete
# tr[ace] (on|off) set trace mode of current thread
[68] Fix | Delete
# tr[ace] (on|off) all set trace mode of all threads
[69] Fix | Delete
# q[uit] exit from debugger
[70] Fix | Delete
# v[ar] g[lobal] show global variables
[71] Fix | Delete
# v[ar] l[ocal] show local variables
[72] Fix | Delete
# v[ar] i[nstance] <object> show instance variables of object
[73] Fix | Delete
# v[ar] c[onst] <object> show constants of object
[74] Fix | Delete
# m[ethod] i[nstance] <obj> show methods of object
[75] Fix | Delete
# m[ethod] <class|module> show instance methods of class or module
[76] Fix | Delete
# th[read] l[ist] list all threads
[77] Fix | Delete
# th[read] c[ur[rent]] show current thread
[78] Fix | Delete
# th[read] [sw[itch]] <nnn> switch thread context to nnn
[79] Fix | Delete
# th[read] stop <nnn> stop thread nnn
[80] Fix | Delete
# th[read] resume <nnn> resume thread nnn
[81] Fix | Delete
# p expression evaluate expression and print its value
[82] Fix | Delete
# h[elp] print this help
[83] Fix | Delete
# <everything else> evaluate
[84] Fix | Delete
#
[85] Fix | Delete
# == Usage
[86] Fix | Delete
#
[87] Fix | Delete
# The following is a list of common functionalities that the debugger
[88] Fix | Delete
# provides.
[89] Fix | Delete
#
[90] Fix | Delete
# === Navigating through your code
[91] Fix | Delete
#
[92] Fix | Delete
# In general, a debugger is used to find bugs in your program, which
[93] Fix | Delete
# often means pausing execution and inspecting variables at some point
[94] Fix | Delete
# in time.
[95] Fix | Delete
#
[96] Fix | Delete
# Let's look at an example:
[97] Fix | Delete
#
[98] Fix | Delete
# def my_method(foo)
[99] Fix | Delete
# require 'debug'
[100] Fix | Delete
# foo = get_foo if foo.nil?
[101] Fix | Delete
# raise if foo.nil?
[102] Fix | Delete
# end
[103] Fix | Delete
#
[104] Fix | Delete
# When you run this program, the debugger will kick in just before the
[105] Fix | Delete
# +foo+ assignment.
[106] Fix | Delete
#
[107] Fix | Delete
# (rdb:1) p foo
[108] Fix | Delete
# nil
[109] Fix | Delete
#
[110] Fix | Delete
# In this example, it'd be interesting to move to the next line and
[111] Fix | Delete
# inspect the value of +foo+ again. You can do that by pressing +n+:
[112] Fix | Delete
#
[113] Fix | Delete
# (rdb:1) n # goes to next line
[114] Fix | Delete
# (rdb:1) p foo
[115] Fix | Delete
# nil
[116] Fix | Delete
#
[117] Fix | Delete
# You now know that the original value of +foo+ was nil, and that it
[118] Fix | Delete
# still was nil after calling +get_foo+.
[119] Fix | Delete
#
[120] Fix | Delete
# Other useful commands for navigating through your code are:
[121] Fix | Delete
#
[122] Fix | Delete
# +c+::
[123] Fix | Delete
# Runs the program until it either exists or encounters another breakpoint.
[124] Fix | Delete
# You usually press +c+ when you are finished debugging your program and
[125] Fix | Delete
# want to resume its execution.
[126] Fix | Delete
# +s+::
[127] Fix | Delete
# Steps into method definition. In the previous example, +s+ would take you
[128] Fix | Delete
# inside the method definition of +get_foo+.
[129] Fix | Delete
# +r+::
[130] Fix | Delete
# Restart the program.
[131] Fix | Delete
# +q+::
[132] Fix | Delete
# Quit the program.
[133] Fix | Delete
#
[134] Fix | Delete
# === Inspecting variables
[135] Fix | Delete
#
[136] Fix | Delete
# You can use the debugger to easily inspect both local and global variables.
[137] Fix | Delete
# We've seen how to inspect local variables before:
[138] Fix | Delete
#
[139] Fix | Delete
# (rdb:1) p my_arg
[140] Fix | Delete
# 42
[141] Fix | Delete
#
[142] Fix | Delete
# You can also pretty print the result of variables or expressions:
[143] Fix | Delete
#
[144] Fix | Delete
# (rdb:1) pp %w{a very long long array containing many words}
[145] Fix | Delete
# ["a",
[146] Fix | Delete
# "very",
[147] Fix | Delete
# "long",
[148] Fix | Delete
# ...
[149] Fix | Delete
# ]
[150] Fix | Delete
#
[151] Fix | Delete
# You can list all local variables with +v l+:
[152] Fix | Delete
#
[153] Fix | Delete
# (rdb:1) v l
[154] Fix | Delete
# foo => "hello"
[155] Fix | Delete
#
[156] Fix | Delete
# Similarly, you can show all global variables with +v g+:
[157] Fix | Delete
#
[158] Fix | Delete
# (rdb:1) v g
[159] Fix | Delete
# all global variables
[160] Fix | Delete
#
[161] Fix | Delete
# Finally, you can omit +p+ if you simply want to evaluate a variable or
[162] Fix | Delete
# expression
[163] Fix | Delete
#
[164] Fix | Delete
# (rdb:1) 5**2
[165] Fix | Delete
# 25
[166] Fix | Delete
#
[167] Fix | Delete
# === Going beyond basics
[168] Fix | Delete
#
[169] Fix | Delete
# Ruby Debug provides more advanced functionalities like switching
[170] Fix | Delete
# between threads, setting breakpoints and watch expressions, and more.
[171] Fix | Delete
# The full list of commands is available at any time by pressing +h+.
[172] Fix | Delete
#
[173] Fix | Delete
# == Staying out of trouble
[174] Fix | Delete
#
[175] Fix | Delete
# Make sure you remove every instance of +require 'debug'+ before
[176] Fix | Delete
# shipping your code. Failing to do so may result in your program
[177] Fix | Delete
# hanging unpredictably.
[178] Fix | Delete
#
[179] Fix | Delete
# Debug is not available in safe mode.
[180] Fix | Delete
[181] Fix | Delete
class DEBUGGER__
[182] Fix | Delete
MUTEX = Mutex.new # :nodoc:
[183] Fix | Delete
[184] Fix | Delete
class Context # :nodoc:
[185] Fix | Delete
DEBUG_LAST_CMD = []
[186] Fix | Delete
[187] Fix | Delete
begin
[188] Fix | Delete
require 'readline'
[189] Fix | Delete
def readline(prompt, hist)
[190] Fix | Delete
Readline::readline(prompt, hist)
[191] Fix | Delete
end
[192] Fix | Delete
rescue LoadError
[193] Fix | Delete
def readline(prompt, hist)
[194] Fix | Delete
STDOUT.print prompt
[195] Fix | Delete
STDOUT.flush
[196] Fix | Delete
line = STDIN.gets
[197] Fix | Delete
exit unless line
[198] Fix | Delete
line.chomp!
[199] Fix | Delete
line
[200] Fix | Delete
end
[201] Fix | Delete
USE_READLINE = false
[202] Fix | Delete
end
[203] Fix | Delete
[204] Fix | Delete
def initialize
[205] Fix | Delete
if Thread.current == Thread.main
[206] Fix | Delete
@stop_next = 1
[207] Fix | Delete
else
[208] Fix | Delete
@stop_next = 0
[209] Fix | Delete
end
[210] Fix | Delete
@last_file = nil
[211] Fix | Delete
@file = nil
[212] Fix | Delete
@line = nil
[213] Fix | Delete
@no_step = nil
[214] Fix | Delete
@frames = []
[215] Fix | Delete
@finish_pos = 0
[216] Fix | Delete
@trace = false
[217] Fix | Delete
@catch = "StandardError"
[218] Fix | Delete
@suspend_next = false
[219] Fix | Delete
end
[220] Fix | Delete
[221] Fix | Delete
def stop_next(n=1)
[222] Fix | Delete
@stop_next = n
[223] Fix | Delete
end
[224] Fix | Delete
[225] Fix | Delete
def set_suspend
[226] Fix | Delete
@suspend_next = true
[227] Fix | Delete
end
[228] Fix | Delete
[229] Fix | Delete
def clear_suspend
[230] Fix | Delete
@suspend_next = false
[231] Fix | Delete
end
[232] Fix | Delete
[233] Fix | Delete
def suspend_all
[234] Fix | Delete
DEBUGGER__.suspend
[235] Fix | Delete
end
[236] Fix | Delete
[237] Fix | Delete
def resume_all
[238] Fix | Delete
DEBUGGER__.resume
[239] Fix | Delete
end
[240] Fix | Delete
[241] Fix | Delete
def check_suspend
[242] Fix | Delete
while MUTEX.synchronize {
[243] Fix | Delete
if @suspend_next
[244] Fix | Delete
DEBUGGER__.waiting.push Thread.current
[245] Fix | Delete
@suspend_next = false
[246] Fix | Delete
true
[247] Fix | Delete
end
[248] Fix | Delete
}
[249] Fix | Delete
end
[250] Fix | Delete
end
[251] Fix | Delete
[252] Fix | Delete
def trace?
[253] Fix | Delete
@trace
[254] Fix | Delete
end
[255] Fix | Delete
[256] Fix | Delete
def set_trace(arg)
[257] Fix | Delete
@trace = arg
[258] Fix | Delete
end
[259] Fix | Delete
[260] Fix | Delete
def stdout
[261] Fix | Delete
DEBUGGER__.stdout
[262] Fix | Delete
end
[263] Fix | Delete
[264] Fix | Delete
def break_points
[265] Fix | Delete
DEBUGGER__.break_points
[266] Fix | Delete
end
[267] Fix | Delete
[268] Fix | Delete
def display
[269] Fix | Delete
DEBUGGER__.display
[270] Fix | Delete
end
[271] Fix | Delete
[272] Fix | Delete
def context(th)
[273] Fix | Delete
DEBUGGER__.context(th)
[274] Fix | Delete
end
[275] Fix | Delete
[276] Fix | Delete
def set_trace_all(arg)
[277] Fix | Delete
DEBUGGER__.set_trace(arg)
[278] Fix | Delete
end
[279] Fix | Delete
[280] Fix | Delete
def set_last_thread(th)
[281] Fix | Delete
DEBUGGER__.set_last_thread(th)
[282] Fix | Delete
end
[283] Fix | Delete
[284] Fix | Delete
def debug_eval(str, binding)
[285] Fix | Delete
begin
[286] Fix | Delete
eval(str, binding)
[287] Fix | Delete
rescue StandardError, ScriptError => e
[288] Fix | Delete
at = eval("caller(1)", binding)
[289] Fix | Delete
stdout.printf "%s:%s\n", at.shift, e.to_s.sub(/\(eval\):1:(in `.*?':)?/, '')
[290] Fix | Delete
for i in at
[291] Fix | Delete
stdout.printf "\tfrom %s\n", i
[292] Fix | Delete
end
[293] Fix | Delete
throw :debug_error
[294] Fix | Delete
end
[295] Fix | Delete
end
[296] Fix | Delete
[297] Fix | Delete
def debug_silent_eval(str, binding)
[298] Fix | Delete
begin
[299] Fix | Delete
eval(str, binding)
[300] Fix | Delete
rescue StandardError, ScriptError
[301] Fix | Delete
nil
[302] Fix | Delete
end
[303] Fix | Delete
end
[304] Fix | Delete
[305] Fix | Delete
def var_list(ary, binding)
[306] Fix | Delete
ary.sort!
[307] Fix | Delete
for v in ary
[308] Fix | Delete
stdout.printf " %s => %s\n", v, eval(v.to_s, binding).inspect
[309] Fix | Delete
end
[310] Fix | Delete
end
[311] Fix | Delete
[312] Fix | Delete
def debug_variable_info(input, binding)
[313] Fix | Delete
case input
[314] Fix | Delete
when /^\s*g(?:lobal)?\s*$/
[315] Fix | Delete
var_list(global_variables, binding)
[316] Fix | Delete
[317] Fix | Delete
when /^\s*l(?:ocal)?\s*$/
[318] Fix | Delete
var_list(eval("local_variables", binding), binding)
[319] Fix | Delete
[320] Fix | Delete
when /^\s*i(?:nstance)?\s+/
[321] Fix | Delete
obj = debug_eval($', binding)
[322] Fix | Delete
var_list(obj.instance_variables, obj.instance_eval{binding()})
[323] Fix | Delete
[324] Fix | Delete
when /^\s*c(?:onst(?:ant)?)?\s+/
[325] Fix | Delete
obj = debug_eval($', binding)
[326] Fix | Delete
unless obj.kind_of? Module
[327] Fix | Delete
stdout.print "Should be Class/Module: ", $', "\n"
[328] Fix | Delete
else
[329] Fix | Delete
var_list(obj.constants, obj.module_eval{binding()})
[330] Fix | Delete
end
[331] Fix | Delete
end
[332] Fix | Delete
end
[333] Fix | Delete
[334] Fix | Delete
def debug_method_info(input, binding)
[335] Fix | Delete
case input
[336] Fix | Delete
when /^i(:?nstance)?\s+/
[337] Fix | Delete
obj = debug_eval($', binding)
[338] Fix | Delete
[339] Fix | Delete
len = 0
[340] Fix | Delete
for v in obj.methods.sort
[341] Fix | Delete
len += v.size + 1
[342] Fix | Delete
if len > 70
[343] Fix | Delete
len = v.size + 1
[344] Fix | Delete
stdout.print "\n"
[345] Fix | Delete
end
[346] Fix | Delete
stdout.print v, " "
[347] Fix | Delete
end
[348] Fix | Delete
stdout.print "\n"
[349] Fix | Delete
[350] Fix | Delete
else
[351] Fix | Delete
obj = debug_eval(input, binding)
[352] Fix | Delete
unless obj.kind_of? Module
[353] Fix | Delete
stdout.print "Should be Class/Module: ", input, "\n"
[354] Fix | Delete
else
[355] Fix | Delete
len = 0
[356] Fix | Delete
for v in obj.instance_methods(false).sort
[357] Fix | Delete
len += v.size + 1
[358] Fix | Delete
if len > 70
[359] Fix | Delete
len = v.size + 1
[360] Fix | Delete
stdout.print "\n"
[361] Fix | Delete
end
[362] Fix | Delete
stdout.print v, " "
[363] Fix | Delete
end
[364] Fix | Delete
stdout.print "\n"
[365] Fix | Delete
end
[366] Fix | Delete
end
[367] Fix | Delete
end
[368] Fix | Delete
[369] Fix | Delete
def thnum
[370] Fix | Delete
num = DEBUGGER__.instance_eval{@thread_list[Thread.current]}
[371] Fix | Delete
unless num
[372] Fix | Delete
DEBUGGER__.make_thread_list
[373] Fix | Delete
num = DEBUGGER__.instance_eval{@thread_list[Thread.current]}
[374] Fix | Delete
end
[375] Fix | Delete
num
[376] Fix | Delete
end
[377] Fix | Delete
[378] Fix | Delete
def debug_command(file, line, id, binding)
[379] Fix | Delete
MUTEX.lock
[380] Fix | Delete
unless defined?($debugger_restart) and $debugger_restart
[381] Fix | Delete
callcc{|c| $debugger_restart = c}
[382] Fix | Delete
end
[383] Fix | Delete
set_last_thread(Thread.current)
[384] Fix | Delete
frame_pos = 0
[385] Fix | Delete
binding_file = file
[386] Fix | Delete
binding_line = line
[387] Fix | Delete
previous_line = nil
[388] Fix | Delete
if ENV['EMACS']
[389] Fix | Delete
stdout.printf "\032\032%s:%d:\n", binding_file, binding_line
[390] Fix | Delete
else
[391] Fix | Delete
stdout.printf "%s:%d:%s", binding_file, binding_line,
[392] Fix | Delete
line_at(binding_file, binding_line)
[393] Fix | Delete
end
[394] Fix | Delete
@frames[0] = [binding, file, line, id]
[395] Fix | Delete
display_expressions(binding)
[396] Fix | Delete
prompt = true
[397] Fix | Delete
while prompt and input = readline("(rdb:%d) "%thnum(), true)
[398] Fix | Delete
catch(:debug_error) do
[399] Fix | Delete
if input == ""
[400] Fix | Delete
next unless DEBUG_LAST_CMD[0]
[401] Fix | Delete
input = DEBUG_LAST_CMD[0]
[402] Fix | Delete
stdout.print input, "\n"
[403] Fix | Delete
else
[404] Fix | Delete
DEBUG_LAST_CMD[0] = input
[405] Fix | Delete
end
[406] Fix | Delete
[407] Fix | Delete
case input
[408] Fix | Delete
when /^\s*tr(?:ace)?(?:\s+(on|off))?(?:\s+(all))?$/
[409] Fix | Delete
if defined?( $2 )
[410] Fix | Delete
if $1 == 'on'
[411] Fix | Delete
set_trace_all true
[412] Fix | Delete
else
[413] Fix | Delete
set_trace_all false
[414] Fix | Delete
end
[415] Fix | Delete
elsif defined?( $1 )
[416] Fix | Delete
if $1 == 'on'
[417] Fix | Delete
set_trace true
[418] Fix | Delete
else
[419] Fix | Delete
set_trace false
[420] Fix | Delete
end
[421] Fix | Delete
end
[422] Fix | Delete
if trace?
[423] Fix | Delete
stdout.print "Trace on.\n"
[424] Fix | Delete
else
[425] Fix | Delete
stdout.print "Trace off.\n"
[426] Fix | Delete
end
[427] Fix | Delete
[428] Fix | Delete
when /^\s*b(?:reak)?\s+(?:(.+):)?([^.:]+)$/
[429] Fix | Delete
pos = $2
[430] Fix | Delete
if $1
[431] Fix | Delete
klass = debug_silent_eval($1, binding)
[432] Fix | Delete
file = $1
[433] Fix | Delete
end
[434] Fix | Delete
if pos =~ /^\d+$/
[435] Fix | Delete
pname = pos
[436] Fix | Delete
pos = pos.to_i
[437] Fix | Delete
else
[438] Fix | Delete
pname = pos = pos.intern.id2name
[439] Fix | Delete
end
[440] Fix | Delete
break_points.push [true, 0, klass || file, pos]
[441] Fix | Delete
stdout.printf "Set breakpoint %d at %s:%s\n", break_points.size, klass || file, pname
[442] Fix | Delete
[443] Fix | Delete
when /^\s*b(?:reak)?\s+(.+)[#.]([^.:]+)$/
[444] Fix | Delete
pos = $2.intern.id2name
[445] Fix | Delete
klass = debug_eval($1, binding)
[446] Fix | Delete
break_points.push [true, 0, klass, pos]
[447] Fix | Delete
stdout.printf "Set breakpoint %d at %s.%s\n", break_points.size, klass, pos
[448] Fix | Delete
[449] Fix | Delete
when /^\s*wat(?:ch)?\s+(.+)$/
[450] Fix | Delete
exp = $1
[451] Fix | Delete
break_points.push [true, 1, exp]
[452] Fix | Delete
stdout.printf "Set watchpoint %d:%s\n", break_points.size, exp
[453] Fix | Delete
[454] Fix | Delete
when /^\s*b(?:reak)?$/
[455] Fix | Delete
if break_points.find{|b| b[1] == 0}
[456] Fix | Delete
n = 1
[457] Fix | Delete
stdout.print "Breakpoints:\n"
[458] Fix | Delete
break_points.each do |b|
[459] Fix | Delete
if b[0] and b[1] == 0
[460] Fix | Delete
stdout.printf " %d %s:%s\n", n, b[2], b[3]
[461] Fix | Delete
end
[462] Fix | Delete
n += 1
[463] Fix | Delete
end
[464] Fix | Delete
end
[465] Fix | Delete
if break_points.find{|b| b[1] == 1}
[466] Fix | Delete
n = 1
[467] Fix | Delete
stdout.print "\n"
[468] Fix | Delete
stdout.print "Watchpoints:\n"
[469] Fix | Delete
for b in break_points
[470] Fix | Delete
if b[0] and b[1] == 1
[471] Fix | Delete
stdout.printf " %d %s\n", n, b[2]
[472] Fix | Delete
end
[473] Fix | Delete
n += 1
[474] Fix | Delete
end
[475] Fix | Delete
end
[476] Fix | Delete
if break_points.size == 0
[477] Fix | Delete
stdout.print "No breakpoints\n"
[478] Fix | Delete
else
[479] Fix | Delete
stdout.print "\n"
[480] Fix | Delete
end
[481] Fix | Delete
[482] Fix | Delete
when /^\s*del(?:ete)?(?:\s+(\d+))?$/
[483] Fix | Delete
pos = $1
[484] Fix | Delete
unless pos
[485] Fix | Delete
input = readline("Clear all breakpoints? (y/n) ", false)
[486] Fix | Delete
if input == "y"
[487] Fix | Delete
for b in break_points
[488] Fix | Delete
b[0] = false
[489] Fix | Delete
end
[490] Fix | Delete
end
[491] Fix | Delete
else
[492] Fix | Delete
pos = pos.to_i
[493] Fix | Delete
if break_points[pos-1]
[494] Fix | Delete
break_points[pos-1][0] = false
[495] Fix | Delete
else
[496] Fix | Delete
stdout.printf "Breakpoint %d is not defined\n", pos
[497] Fix | Delete
end
[498] Fix | Delete
end
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function