简体   繁体   English

Elixir Phoenix Web 控制台

[英]Elixir Phoenix web console

Coming from the Rails world, I love the "Web console" debugger feature: https://www.reddit.com/r/rails/comments/8fqdg0/web_console_is_not_longer_showing_up_on_rails_52/来自 Rails 世界,我喜欢“Web 控制台”调试器功能: https : //www.reddit.com/r/rails/comments/8fqdg0/web_console_is_not_longer_showing_up_on_rails_52/

网络控制台

Is there a way to have this in Elixir with Phoenix?有没有办法在凤凰的 Elixir 中拥有这个?

Since sockets are already there, and there is a nice web debug interface, it should be piece of cake to have it, shouldn't it?既然套接字已经存在,并且有一个不错的 Web 调试界面,那么拥有它应该是小菜一碟,不是吗?

Apparently it doesn't exists.显然它不存在。

Discussion with José Valim:与 José Valim 的讨论:

José: So we have implementations of IEx over websockets but we can't provide the same feature set as Ruby in that you will have a webconsole at the error site . José:所以我们在 websockets 上实现了 IEx,但我们不能提供与 Ruby 相同的功能集,因为您将在错误站点有一个 webconsole。 In that case, I am not sure if the feature is that useful.在这种情况下,我不确定该功能是否有用。

Me: IEx over websockets looks great and really matches what I was imagining.我:基于 websockets 的 IEx 看起来很棒,而且真的符合我的想象。 Then I guess, to implement this, there should be some kind of error-catching behavior over the server that triggers iex and the socket server at any error level, shouldn't it?然后我想,要实现这一点,服务器上应该有某种错误捕获行为,可以在任何错误级别触发 iex 和套接字服务器,不是吗?

José: This is exactly what I meant.何塞:这正是我的意思。 This is not possible in Elixir/Phoenix.这在 Elixir/Phoenix 中是不可能的。

Thanks for being open to discussion José!感谢您对何塞的讨论持开放态度!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM