初心者です。よろしくお願いします。
vs codeでデバッグを開始したところ下記のようなエラー文が表示されました。
Railsの保存場所が間違っているのでしょうか。
【開発環境】
・Windows10
・VS Code 1.25.1
・Ruby 2.3.3
・Selenium
・chromedriver
【設定済】
・bundler
・Gemfile
・uru
・devkit
【参考にしたサイト】
http://d.hatena.ne.jp/t_tutiya/20170204/1486204880- リスト
◎helloworld.rb
a
1b = 3 * a + 2 2printf("%d %d\n", a, b)
◎launch.json9
"configurations": [ { "name": "Debug Local File", "type": "Ruby", "request": "launch", "cwd": "${workspaceRoot}", "program": "${workspaceRoot}/helloworld.rb" }, { "name": "Listen for rdebug-ide", "type": "Ruby", "request": "attach", "cwd": "${workspaceRoot}", "remoteHost": "127.0.0.1", "remotePort": "1234", "remoteWorkspaceRoot": "${workspaceRoot}" }, { "name": "Rails server", "type": "Ruby", "request": "launch", "cwd": "${workspaceRoot}", "program": "${workspaceRoot}/bin/rails", "args": [ "server" ] }, { "name": "RSpec - all", "type": "Ruby", "request": "launch", "cwd": "${workspaceRoot}", "program": "${workspaceRoot}/bin/rspec", "args": [ "-I", "${workspaceRoot}" ] }, { "name": "RSpec - active spec file only", "type": "Ruby", "request": "launch", "cwd": "${workspaceRoot}", "program": "${workspaceRoot}/bin/rspec", "args": [ "-I", "${workspaceRoot}", "${file}" ] }, { "name": "Cucumber", "type": "Ruby", "request": "launch", "cwd": "${workspaceRoot}", "program": "${workspaceRoot}/bin/cucumber" } ] }
◎デバッグコンソール
以下のようなエラー分が表示されます。
```C:/Ruby23/bin/rdebug-ide:23:in <main>' C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1/lib/ruby-debug-ide.rb:92:in
debug_load': cannot load such file -- D:/Ruby on Rails/sample/vendor/bundler/ruby/2.3.0/gems/mini_portile2-2.3.0/test/assets/git/helloworld.rb (LoadError)
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1/lib/ruby-debug-ide.rb:92:in debug_program' from C:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.1/bin/rdebug-ide:182:in
<top (required)>'
from C:/Ruby23/bin/rdebug-ide:23:in load' from C:/Ruby23/bin/rdebug-ide:23:in
<main>'
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/11 13:47