# Debug Filebeat

**URL:** <https://discuss.elastic.co/t/debug-filebeat/146817>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 31, 2018, 7:07am UTC](https://discuss.elastic.co/t/debug-filebeat/146817 "2018-08-31T07:07:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Wohrle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_wohrle/32/49777_2.png) [@Christian\_Wohrle](https://discuss.elastic.co/u/Christian_Wohrle)\
**Post date:** [August 31, 2018, 7:07am UTC](https://discuss.elastic.co/t/debug-filebeat/146817/1 "2018-08-31T07:07:51Z")

</div>

I'd like to debug filebeat in goland to understand how it is working internally but I get the error message:

```auto
could not launch process: could not get .debug_frame section: could not find .debug_frame section

```

This is in fact a go error that won't be fixed until go 1.12 and is discussed here.  
However: Is there a smart way to get around that go issue or is really impossible to debug for some time.

> <https://github.com/golang/go/issues/23733>

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [August 31, 2018, 4:56pm UTC](https://discuss.elastic.co/t/debug-filebeat/146817/2 "2018-08-31T16:56:23Z")

</div>

We can't do much about go compiler issues. If I need to debug with delve, I often switch to go1.9. I use [gvm](https://github.com/andrewkroh/gvm) to switch to another go version via `eval $(gvm 1.9)`.

Normally I use this for debugging unit tests in single packages. Not sure if filebeat still compiles with go 1.9.

Golang uses delve. From CLI you can try gdb as well.

---

<div class="post-metadata">

**Author:** ![Christian\_Wohrle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_wohrle/32/49777_2.png) [@Christian\_Wohrle](https://discuss.elastic.co/u/Christian_Wohrle)\
**Post date:** [August 31, 2018, 5:16pm UTC](https://discuss.elastic.co/t/debug-filebeat/146817/3 "2018-08-31T17:16:15Z")

</div>

Thank you!

---

<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:** [September 28, 2018, 5:16pm UTC](https://discuss.elastic.co/t/debug-filebeat/146817/4 "2018-09-28T17:16:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
