Sha256: 9448ad17e83147dc9726f298fae055f587d8082702bc1a25f2b6437224a6ceed

Contents?: true

Size: 1.61 KB

Versions: 9

Compression:

Stored size: 1.61 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.
# 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 on\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 on.
Currently testing the debugger is on.
autolist is off.
autoirb is off.
# ##info break
# ##info catch
# ##show listsize

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.1.2 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.1.1 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.1.0 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.0.3 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.0.2 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
vim-jar-0.0.1 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/data/save.right
ruby-debug-0.10.4 test/data/save.right