# Any way to use binding.pry in the logstash shell?

**URL:** <https://discuss.elastic.co/t/any-way-to-use-binding-pry-in-the-logstash-shell/26594>\
**Category:** Logstash\
**Created:** [July 30, 2015, 9:11pm UTC](https://discuss.elastic.co/t/any-way-to-use-binding-pry-in-the-logstash-shell/26594 "2015-07-30T21:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheeseandpepper](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cheeseandpepper](https://discuss.elastic.co/u/cheeseandpepper)\
**Post date:** [July 30, 2015, 9:11pm UTC](https://discuss.elastic.co/t/any-way-to-use-binding-pry-in-the-logstash-shell/26594/1 "2015-07-30T21:11:00Z")

</div>

I'm curious to know if anyone knows if it's possible to pause the execution of logstash with a pry binding so that I can better debug my conf file. This would greatly speed up development and allow me to understand more how to interact with the scope and variables.

---

<div class="post-metadata">

**Author:** ![cheeseandpepper](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cheeseandpepper](https://discuss.elastic.co/u/cheeseandpepper)\
**Post date:** [July 30, 2015, 9:18pm UTC](https://discuss.elastic.co/t/any-way-to-use-binding-pry-in-the-logstash-shell/26594/2 "2015-07-30T21:18:33Z")

</div>

I was able to do this like so...

```
filter {
  ruby {
    code => "require 'pry'; binding.pry"
  }    
}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:33am UTC](https://discuss.elastic.co/t/any-way-to-use-binding-pry-in-the-logstash-shell/26594/3 "2017-07-06T05:33:17Z")

</div>

Closed on July 6, 2017, 5:33am UTC


