Sha256: 525d894dfcdc7e6c29cc6dcc534ba930590497a8aa77372bb3b803e9a44ace82

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

gcd.rb:4
def gcd(a, b)
# # This tests the functioning of some set/show debugger commands
# set debuggertesting on
Currently testing the debugger is on.
# ### *******************************
# ### ***   save/source commands  ***
# ### *******************************
# ########################################
# ###   test args and baseneme...
# ########################################
# set basename off
basename is off.
# set autoeval off
autoeval is off.
# # Should have nothing set
# info break
No breakpoints.
# info catch
No exceptions set to be caught.
# # Should save nothing
# save temp
Saved to 'temp'
# eval File.open("temp").readlines
["set autoeval off\n", "set basename off\n", "set debuggertesting on\n", "set autolist off\n", "set autoirb off\n"]
# # Should read in nothing
# source temp
autoeval is off.
basename is off.
Currently testing the debugger is on.
autolist is off.
autoirb is off.
# set basename off
basename is off.
# info break
No breakpoints.
# # Now try saving something interesting
# break 10
Breakpoint 1 file gcd.rb, line 10
# catch RuntimeError
Catch exception RuntimeError.
# save temp
Saved to 'temp'
# eval File.open("temp").readlines
["break gcd.rb:10\n", "catch RuntimeError\n", "set autoeval off\n", "set basename off\n", "set debuggertesting on\n", "set autolist off\n", "set autoirb off\n"]
# # FIXME: The below is broken
# ## Change parameters above
# ## catch RuntimeError off
# ## info catch
# ##set listsize 55
# source temp
Breakpoint 2 file gcd.rb, line 10
Catch exception RuntimeError.
autoeval is off.
basename is off.
Currently testing the debugger is on.
autolist is off.
autoirb is off.
# ##info break
# ##info catch
# ##show listsize

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-debug-0.10.5.rc1 test/data/save.right