首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

用RubyMine进行debug的时候,启动时出现错误

2012-10-09 
用RubyMine进行debug的时候,启动时出现异常Rails环境:Rails版本v2.2.2Ruby版本1.8.7ruby-debug (0.10.4)ru

用RubyMine进行debug的时候,启动时出现异常

Rails环境:

Rails版本v2.2.2

Ruby版本1.8.7

ruby-debug (0.10.4)
ruby-debug-base (0.10.5.jb2 mswin32)
ruby-debug-ide (0.4.16)

?

今天用rubymine3.1的debug功能进行调试的时候,发现启动的时候发现了异常,没有找到原因,希望路过的大侠们帮忙解决一下

启动信息:

?

[2011-11-01 23:47:26] INFO  WEBrick 1.3.1[2011-11-01 23:47:26] INFO  ruby 1.8.7 (2010-08-16) [i386-mingw32][2011-11-01 23:47:26] WARN  TCPServer Error: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 - bind(2)C:/Ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 - bind(2) (Errno::EADDRINUSE)        from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:73:in `new'        from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'        from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:70:in `each'        from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners'        from C:/Ruby/lib/ruby/1.8/webrick/server.rb:75:in `listen'        from C:/Ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'        from C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'        from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:56:in `new'        from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:56:in `dispatch'        from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick.rb:66        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'        from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'        from script/server:3

?

这个信息就很明显知道哪里出了问题了,启动服务器以后没有关闭,直接进行了debug,端口冲突导致的

?

?

热点排行