首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Rubymine调试[BUG]分割故障

Rubymine调试[BUG]分割故障
EN

Stack Overflow用户
提问于 2013-09-10 08:40:59
回答 1查看 718关注 0票数 4

描述

当我使用rubymine5.4 5.4调试thor方法:template时,我遇到了错误分割错误

上下文

  • rubymine5.4
  • ruby-debug-ide-0.4.18
  • ruby 2.0.0
  • 雷亚尔0.18-1

代码

代码语言:javascript
运行
复制
#/home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/thor-0.18.1/lib/thor/actions/file_manipulation.rb

def template(source, *args, &block)

  #i make a breakpoint in below line

  config = args.last.is_a?(Hash) ? args.pop : {}
  destination = args.first || source.sub(/\.tt$/, '')

  source  = File.expand_path(find_in_source_paths(source.to_s))
  context = instance_eval('binding')

  create_file destination, nil, config do
    content = ERB.new(::File.binread(source), nil, '-', '@output_buffer').result(context)
    content = block.call(content) if block
    content
  end
end

得到了这个错误:

代码语言:javascript
运行
复制
Fast Debugger (ruby-debug-ide 0.4.17, debase 0.0.7) listens on 127.0.0.1:36963
/home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:27: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0027 p:---- s:0131 e:000130 CFUNC  :frame_binding
c:0026 p:0038 s:0127 e:000125 BLOCK  /home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:27
c:0025 p:0026 s:0123 e:000122 METHOD /home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:116 [FINISH]
c:0024 p:---- s:0120 e:000119 CFUNC  :new
c:0023 p:0105 s:0117 e:000116 METHOD /home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:23
c:0022 p:0172 s:0108 e:000107 METHOD /home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/event_processor.rb:58
c:0021 p:0043 s:0101 e:000100 METHOD /home/zxr/.rvm/gems/ruby-2.0.0-p247@global/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/event_processor.rb:34
EN

回答 1

Stack Overflow用户

发布于 2013-11-27 11:32:34

尝试更新调试创业板:

宝石安装ruby-调试-base19x 19x --pre

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18714250

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档