而 Byebug CI 仅针对 mingw 和 x64_mingw 运行,所以我想它应该是 :platforms =>[:mri, :mingw, :x64_mingw],对吗? 解决方案 是的,byebug 支持 Windows.Rails 5 为 byebug gem 添加了 platform::mri 选项.(见这里)在添加该补丁时,Windows 平台可能被忽略了.而且这份文件说 mri 不包括 Windows.没错.我听说有人说某些命令(例如重启)在他们的 Windows PC 上不起作用.那些人应该向项目报告这些问题.CI 测试在 Windows 环境下通过.(参见此处)没错,支持的最佳指标;)而且我在 Byebug 的 README 中找不到对 Windows 环境的任何限制.另一个很好的指标:)My environment is macOS and I don't have Windows environment. I am writing a blog post about Byebug and I want to know if it fully supports Windows or not. Here is information I got:Might not work?Rails 5 adds platform: :mri option to byebug gem. (see here)And this document says mri does not include Windows.I heard some people said that some commands (e.g.restart) did not work in their Windows PC.So Byebug does not support Windows?Might work?CI tests are passing against Windows environment.(see here)And I cannot find any limitation on Windows environment in Byebug's README.So Byebug supports Windows?I am not sure which idea is right. Does anyone know about it?UPDATE@deivid says Byebug supports Windows. Then, what is the valid platform option for Gemfile?:platforms => [:mri, :mingw, :x64_mingw] or :platforms => [:mri, :mswin]?Here are the options exctracted from this page.ruby => C Ruby (MRI) or Rubinius, but NOT Windowsmri => Same as ruby, but not Rubiniusrbx => Same as ruby, but only Rubinius (not MRI)jruby => JRubymswin => Windowsmingw => Windows 32 bit 'mingw32' platform (aka RubyInstaller)x64_mingw => Windows 64 bit 'mingw32' platform (aka RubyInstaller x64)In this comment:And mswin seems these packages:https://www.artonx.org/data/asr/And Byebug CI is running against mingw and x64_mingw only, so I guess it should be :platforms => [:mri, :mingw, :x64_mingw], correct? 解决方案 Yes, byebug support Windows.Windows platforms were probably overlooked when that patch was added.That's right.Those people should report those issues to the project.Thtat's right, the best indicator of support ;)Another good indicator :) 这篇关于Byebug 是否完全支持 Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-19 15:10