IEx Pry: Always allow?

旧巷老猫 提交于 2020-08-19 11:36:41

问题


When I run Elixir code with my debugger, Pry, then it always confronts me with Allow? [Yn]

  1. Can I pass a configuration option to always allow this? Thus, by default?
  2. Why is this question asked? What could be harmful?

回答1:


No, you cannot provide an option to allow without manual confirmation.

The confirmation is a reused component of IEx, any terminal takeover messages (:take) require user confirmation. This take over flow also happens in IEx.pry/0.

As for why this is the case, I am not sure. I would assume it is a security measure. However, the confirmation simply safeguards IEx.evaluator.run/4, which does not seem to be an obvious attack vector.



来源:https://stackoverflow.com/questions/47515203/iex-pry-always-allow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!