Byebug fully supports Windows or not?

2020-04-11 05:44发布

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 Windows
  • mri => Same as ruby, but not Rubinius
  • rbx => Same as ruby, but only Rubinius (not MRI)
  • jruby => JRuby
  • mswin => Windows
  • mingw => Windows 32 bit 'mingw32' platform (aka RubyInstaller)
  • x64_mingw => Windows 64 bit 'mingw32' platform (aka RubyInstaller x64)

In this comment:

mswin and mingw are completely different things.

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?

2条回答
Root(大扎)
2楼-- · 2020-04-11 06:17

Yes, byebug support Windows.

Rails 5 adds platform: :mri option to byebug gem. (see here)

Windows platforms were probably overlooked when that patch was added.

And this document says mri does not include Windows.

That's right.

I heard some people said that some commands (e.g.restart) did not work in their Windows PC.

Those people should report those issues to the project.

CI tests are passing against Windows environment.(see here)

Thtat's right, the best indicator of support ;)

And I cannot find any limitation on Windows environment in Byebug's README.

Another good indicator :)

查看更多
手持菜刀,她持情操
3楼-- · 2020-04-11 06:44

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

byebug is now working on my windows rails app. This is not obvious from the selected answer.

查看更多
登录 后发表回答