2016-02-10 44 views
0

我在配置windows平臺上pry默認編輯器時遇到問題。 Iam能夠打開pry會話並在pry會話中能夠導航,cd入實例變量並使用binding.pry停止執行,並使用play命令執行代碼行。需要幫助在Windows上pry配置默認編輯器

但不能使用它給人錯誤,如編輯命令無法找到C到修改代碼:\ myusernameAppLocalTemppry20160210-9320-1kn8la9.rb文件

我使用紅寶石 - > 1.9.3撬 - > 0.10.3 rspec的 - > 2.11.0 請讓我知道如何用撬會話配置打開編輯器

由於提前 桑托斯庫爾卡尼

回答

0

我有同樣的問題,然後我創建〜/。 pryrc並插入以下行(我使用Vi作爲編輯器)。

Pry.config.editor = "vi" 
Pry.config.editor = proc { |file, line| "vi +#{line} #{file}" }