This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | enhancement: filter out lines from the stack trace | ||
---|---|---|---|
Product: | ruby | Reporter: | jamespb <jamespb> |
Component: | Code | Assignee: | issues@ruby <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
jamespb
2007-07-21 19:52:45 UTC
Submitted this, then realized it's better to do this in Ruby than in the IDE. Just do: module Test module Unit module Util module BacktraceFilter def filter_backtrace_with_only_my_code(backtrace, prefix=nil) result = filter_backtrace_without_only_my_code backtrace, prefix result.reject! {|x| x =~ /ruby.lib.ruby/} result.reject! {|x| x =~ /vendor.plugins.mocha/} result end alias_method_chain :filter_backtrace, :only_my_code end end end end |