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

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

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

revision 1.4 by ljulliar, Mon Mar 3 22:35:03 2003 UTC revision 1.5 by ljulliar, Sun Mar 9 08:54:51 2003 UTC
# Line 237  class DEBUGGER__ Line 237  class DEBUGGER__
237        end        end
238      end      end
239    
240        def fr_debug_eval(str, binding)
241          begin
242            val = eval(str, binding)
243            out = val.inspect unless val.nil?
244          rescue StandardError, ScriptError
245            at = eval("caller(0)", binding)
246            out = sprintf("%s:%s\n", at.shift, $!.to_s.sub(/\(eval\):1:(in `.*?':)?/, '')) #`
247            for i in at
248              out << sprintf("\tfrom %s\n", i)
249            end
250          end
251          out
252        end
253    
254      def debug_silent_eval(str, binding)      def debug_silent_eval(str, binding)
255        begin        begin
256          val = eval(str, binding)          val = eval(str, binding)
# Line 1294  EOHELP Line 1308  EOHELP
1308        global_variables.each { |v| gv_ary[v] = eval(v, binding).inspect }        global_variables.each { |v| gv_ary[v] = eval(v, binding).inspect }
1309        gv_ary        gv_ary
1310      end      end
1311    
1312        # LJ - FreeRIDE
1313        def fr_eval_expr(expr)
1314          binding, file, line, id = DEBUGGER__.context(DEBUGGER__.last_thread).current_frame
1315          v = DEBUGGER__.context(DEBUGGER__.last_thread).fr_debug_eval(expr,binding)
1316          return v
1317        end
1318    
1319        
1320  end  end
1321    
1322    # LJ - FreeRIDE    # LJ - FreeRIDE

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

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