Byebug 是否完全支持 Windows?

Jun*_*Ito 3 ruby windows byebug

我的环境是macOS,我没有Windows环境。我正在写一篇关于 Byebug 的博客文章,我想知道它是否完全支持 Windows。这是我得到的信息:

可能行不通?

  • Rails 5platform: :mri为 byebug gem添加了选项。(见这里)
  • 并且这份文件说 mri 不包括 Windows。
  • 我听说有些人说某些命令(例如restart)在他们的 Windows PC 中不起作用。
  • 所以Byebug不支持Windows?

可能有用吗?

  • CI 测试正在通过 Windows 环境。(见这里)
  • 而且我在Byebug 的 README 中找不到对 Windows 环境的任何限制。
  • 那么Byebug 支持Windows 吗?

我不确定哪个想法是正确的。有人知道吗?

更新

@deivid 说 Byebug 支持 Windows。那么,Gemfile 的有效平台选项是什么?

:platforms => [:mri, :mingw, :x64_mingw]或者:platforms => [:mri, :mswin]?

以下是从本页中摘录的选项。

  • ruby => C Ruby (MRI) 或 Rubinius,但不是 Windows
  • mri => 与 ruby​​ 相同,但与 Rubinius 不同
  • rbx => 与 ruby​​ 相同,但只有 Rubinius(不是 MRI)
  • jruby => JRuby
  • mswin => 视窗
  • mingw => Windows 32 位“mingw32”平台(又名 RubyInstaller)
  • x64_mingw => Windows 64 位“mingw32”平台(又名 RubyInstaller x64)

在此评论中:

mswin 和 mingw 是完全不同的东西。

和 mswin 似乎这些包:

https://www.artonx.org/data/asr/

而且 Byebug CI 仅针对 mingw 和 x64_mingw 运行,所以我想它应该是:platforms => [:mri, :mingw, :x64_mingw],对吗?

Jay*_*een 5

gem 'byebug', platform: [:mri, :mingw, :x64_mingw]

byebug现在正在开发我的 windows rails 应用程序。这从所选答案中并不明显。