# Debugging the elasticsearch-example in search-ui

**URL:** <https://discuss.elastic.co/t/debugging-the-elasticsearch-example-in-search-ui/286594>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [October 13, 2021, 8:33am UTC](https://discuss.elastic.co/t/debugging-the-elasticsearch-example-in-search-ui/286594 "2021-10-13T08:33:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpjjonker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mpjjonker/32/95796_2.png) [@mpjjonker](https://discuss.elastic.co/u/mpjjonker)\
**Post date:** [October 13, 2021, 8:33am UTC](https://discuss.elastic.co/t/debugging-the-elasticsearch-example-in-search-ui/286594/1 "2021-10-13T08:33:18Z")

</div>

Hi,

I am getting started with the search-ui components and have the elasticsearch-example from the search-ui up and running in Visual Studio Code.  
I can create a launch.json to configure the environment for debugging.  
Although the debugger starts, any breakpoint that I set becomes 'unbound'.  
I have tried to add the outFiles option, but that does not help.

```auto
{
            "type": "node",
            "request": "launch",
            "name": "search-ui debug",
            "cwd": "${workspaceFolder}",
            "runtimeExecutable": "npm",
            "runtimeArgs": ["run-script", "start"],
            "outFiles": ["${workspaceRoot}/src/*.js"]
            }

```

I hope someone can share a working launch.json to help get started with debuggin.  
In other React Apps I don't have this problem.  
This is the repo that I am using: [https://github.com/elastic/search-ui/tree/master/examples/elasticsearch](https://github.com/elastic/search-ui/tree/master/examples/elasticsearch)

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [October 13, 2021, 1:15pm UTC](https://discuss.elastic.co/t/debugging-the-elasticsearch-example-in-search-ui/286594/2 "2021-10-13T13:15:08Z")

</div>

I honestly have no idea, I've never attempted this myself. You can also try dropping an issue directly on the repository, you may have a more targeted audience there that could help 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:** [November 10, 2021, 1:15pm UTC](https://discuss.elastic.co/t/debugging-the-elasticsearch-example-in-search-ui/286594/3 "2021-11-10T13:15:48Z")

</div>

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