Sha256: b2a813f97b385559825874335ae534f7471fab6cc6a8ad947cb520551a9804f1

Contents?: true

Size: 394 Bytes

Versions: 109

Compression:

Stored size: 394 Bytes

Contents

module Debugger
  class LoadCommand < Command  
    def regexp
      /^\s*load\s+/
    end
    
    def execute
      fileName = @match.post_match
      @printer.print_debug("loading file: %s", fileName)
      begin
        load fileName
        @printer.print_load_result(fileName)
      rescue Exception => error
        @printer.print_load_result(fileName, error)
      end
    end
  end
end

Version data entries

109 entries across 101 versions & 7 rubygems

Version Path
ruby-debug-ide-0.5.0 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.33 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.32 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.31 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.30 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.29 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.28 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.27 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.26 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.25 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.24 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.24.beta5 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.24.beta4 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23.beta11 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23.beta10 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23.beta9 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23.beta8 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23.beta7 lib/ruby-debug-ide/commands/load.rb
ruby-debug-ide-0.4.23.beta1 lib/ruby-debug-ide/commands/load.rb