IEx Pry: Always allow?

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

  • Can I pass a configuration parameter to always allow this? So, by default?
  • Why is this question asked? What could be harmful?
+5
source share
1 answer

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

Confirmation is a reusable component of IEx; any terminal interception messages ( :take ) require user confirmation . This happens with the stream also happening in IEx.pry/0 .

As for this, I'm not sure. I would suggest that this is a security measure. However, confirmation simply protects IEx.evaluator.run/4 , which does not seem to be an obvious attack vector.

+1
source

Source: https://habr.com/ru/post/1273687/


All Articles