Method: Exception#backtrace
- Defined in:
- lib/source/ruby.rb
#backtrace ⇒ Object
call-seq:
exc.backtrace -> array
Returns any backtrace associated with the exception. The backtrace is an array of strings, each containing “/path/to/filename:line”.
2881 2882 2883 2884 2885 |
# File 'lib/source/ruby.rb', line 2881 def backtrace `if(this._stack==null){return [];}` `for(var i=0,lines=this._stack.match(/@[^\\n]+:\\d+/g),l=lines.length,result=[];i<l;++i){result.push($q(lines[i].match(/@\\w+:\\/*(\\/[^\\n]+:\\d+)/)[1]));}` return `result` end |