IEx Pry: Always allow / take over without prompt
Asked Answered
B

1

11

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?
Birdsong answered 27/11, 2017 at 16:8 Comment(0)
P
5

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.

Polo answered 4/1, 2018 at 4:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.