Byebug 是否完全支持 Windows? [英] Byebug fully supports Windows or not?

查看:19
本文介绍了Byebug 是否完全支持 Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

可能不起作用?

  • Rails 5 为 byebug gem 添加了 platform::mri 选项.(见此处)
  • 而且这份文件说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 => Windows
  • 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],对吗?

解决方案

是的,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 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?

解决方案

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 :)

这篇关于Byebug 是否完全支持 Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆