使用rspec提升Ruby Debugger连接错误

时间:2014-01-12 09:23:55

标签: ruby debugging rspec sublimetext

我将使用SublimeText进行编码,并且已经安装了Ruby Debugger插件。一切正常,但如果我想调试一些rspec,调试器会因此错误而断开连接:

Debugger exception: [Errno 104] Connection reset by peer
    StackTrace: Traceback (most recent call last):
        File "/home/philipp/.config/sublime-text-3/Packages/Ruby Debugger/debugge/ruby_imp/ruby_debugger_connector.py", line 102, in reader_thread
            bytes = self.client.recv(4096)
ConnectionResetError: [Errno 104] Connection reset by peer

我正在调试的spec文件如下所示:

1 | require_relative '../spec_helper'
2 |
3 | describe Parser do
4 |     before :each do
5 |         @parser = Parser.new '../../../file.txt'
6 |     end
7 |
8 |     describe '#new' do
9 |          it 'raises an error if no input file is given' do
10|             lambda { Parser.new }.should raise_exception ArgumentError
11|         end
12|     end
13| end

我在第5行设置了断点,但调试器从未克服第3行。那可能是什么?

0 个答案:

没有答案