gpt4 book ai didi

ruby - Byebug 是否完全支持 Windows?

转载 作者:可可西里 更新时间:2023-11-01 14:48:26 25 4
gpt4 key购买 nike

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

可能行不通?

  • Rails 5 为 byebug gem 添加了 platform: :mri 选项。 ( see here )
  • this document说 mri 不包括 Windows。
  • 我听到有人说某些命令(例如restart)在他们的 Windows PC 上不起作用。
  • 所以 Byebug 不支持 Windows?

可能有用吗?

  • 针对 Windows 环境的 CI 测试正在通过。( see here )
  • 而且我在 Byebug's README 中找不到对 Windows 环境的任何限制。 .
  • 所以 Byebug 支持 Windows?

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

更新

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

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

以下是从 this page 中提取的选项.

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

this comment :

mswin and mingw are completely different things.

而 mswin 似乎是这些包:

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

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

最佳答案

gem 'byebug',平台:[:mri, :mingw, :x64_mingw]

byebug 现在正在我的 Windows Rails 应用程序上工作。这从所选答案中并不明显。

关于ruby - Byebug 是否完全支持 Windows?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41674136/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com