[英]debugging rails apps, is the debugger keyword the only way? any IDE help?
[英]Get VS Code IDE debugging of apps on Rails 5.2 to work?
在VS Code(或其他IDE)中;
看着https://github.com/Shopify/bootsnap/issues/93 ,我相信這個問題是由於以下因素的結合而發生的。 -新的Ruby 2.5功能“刪除trace
說明”( https://bugs.ruby-lang.org/issues/14104)-Rails 5.2包含bootsnap gem
注意:在其他IDE中也發生了相同的問題。 -Jetbrains; https://youtrack.jetbrains.com/issue/RUBY-20684-RubyMine ; https://github.com/ruby-debug/ruby-debug-ide/issues/139
vscode-ruby
版本:0.18.0 更換線;
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
有了;
unless ( (('2.5.0'..'2.5.1').include? RUBY_VERSION) && defined?(Debugger) ) require 'bootsnap/setup' # Speed up boot time by caching expensive operations. end
注意:
看起來潛在的Ruby問題將在2.5.2( ruby / ruby @ b85b10c )中修復 。
鑒於問題僅存在於Ruby 2.5.0到2.5.1版本中,因此上述解決方法應適用於所有受影響的版本,而其他所有版本均應保留。 (即,它應該在所有配置中均正常工作)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.