/[freeride]/freeride/plugins/rubyide_tools_debugger/debugger.rb
ViewVC logotype

Diff of /freeride/plugins/rubyide_tools_debugger/debugger.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by richkilmer, Thu Jan 16 20:53:20 2003 UTC revision 1.4 by ljulliar, Mon Jan 27 14:02:54 2003 UTC
# Line 42  class Debugger < Component Line 42  class Debugger < Component
42      session = nil      session = nil
43      cmd = cmd_mgr.add("App/Run/Debugger", "&Debugger") do |cmd_slot|      cmd = cmd_mgr.add("App/Run/Debugger", "&Debugger") do |cmd_slot|
44        unless debugger        unless debugger
45          debugger = cmd_slot["/system/ui/components/Debugger"].manager.add("debug")          debugger = base_slot.manager.add
         #session = Debugger.new(plugin,slot)  
46        end        end
47      end      end
48    
# Line 92  class Debugger < Component Line 91  class Debugger < Component
91    # Instantiate a new  debugger session . Only one session at a time for now    # Instantiate a new  debugger session . Only one session at a time for now
92    #    #
93    def initialize(plugin, slot)    def initialize(plugin, slot)
94      setup(plugin, slot)      #setup(plugin, slot)
95        @plugin = plugin
96        @slot = slot
97      @loaded_files = Hash.new      @loaded_files = Hash.new
98      @running = false      @running = false
99      @breakpoints = Array.new      @breakpoints = Array.new
100      @breakpoint_subscribers = Hash.new      @breakpoint_subscribers = Hash.new
101      @action_queue = Array.new      @action_queue = Array.new
102    
103      #@plugin['/system/ui/current/Debugger'].data = self      @plugin['/system/ui/current/Debugger'].data = self
104      @plugin.log_info << "Debugger session created #{slot.path}"      @plugin.log_info << "Debugger session created #{slot.path}"
105        self.start
106    end    end
107    
108    
# Line 122  class Debugger < Component Line 123  class Debugger < Component
123      # to include, command line arguments...      # to include, command line arguments...
124      file = @plugin['/system/ui/current/EditPane'].manager.file      file = @plugin['/system/ui/current/EditPane'].manager.file
125      @plugin.log_info << "File to debug : #{file}"      @plugin.log_info << "File to debug : #{file}"
126      debuggee_file = File.join("plugins","Debugger","debuggee.rb")      debuggee_file = File.join("#{plugin.plugin_configuration.base_path}","debuggee.rb")
127      command = "ruby -I. -Iso -Iredist -r #{debuggee_file} #{file}"      command = "ruby -I. -Iso -Iredist -r #{debuggee_file} #{file}"
128      puts command      puts command
129    
# Line 142  class Debugger < Component Line 143  class Debugger < Component
143      @debuggee = DRbObject.new(nil, debugUri)      @debuggee = DRbObject.new(nil, debugUri)
144      debuggeeId = @debuggee.attach(self)      debuggeeId = @debuggee.attach(self)
145    
146    
147      if debuggeeId      if debuggeeId
148        STDERR.print "#{ debuggeeId } attached.\n"        STDERR.print "#{ debuggeeId } attached.\n"
149      else      else

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26