# Remote debugging

**URL:** <https://forum.legato.io/t/remote-debugging/4458>\
**Category:** Legato Application Framework\
**Created:** [June 25, 2019, 10:10am UTC](https://forum.legato.io/t/remote-debugging/4458 "2019-06-25T10:10:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazzox](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lazzox](https://forum.legato.io/u/lazzox)\
**Post date:** [June 25, 2019, 10:10am UTC](https://forum.legato.io/t/remote-debugging/4458/1 "2019-06-25T10:10:10Z")

</div>

Hello,

I am following this tutorial:

`https://docs.legato.io/latest/howToDebugGDB.html#howToDebugGDB_building`

After this step I get a response:

```
(gdb) target remote localhost:2000
Remote debugging using localhost:2000
Remote communication error. Target disconnected.: Connection reset by peer.

```

And on the target I see this output:  
channel 3: open failed: connect failed:

What could be the problem? My app is using Legato Version: 18.06.03 I am using gdb server from the toolchain that comes with that version of Legato. I managed to execute all steps inbefore that one without a problem. I am using Ubuntu 18.04 on host machine.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 4, 2019, 8:44am UTC](https://forum.legato.io/t/remote-debugging/4458/2 "2019-07-04T08:44:47Z")

</div>

do you want to use debug view in Developer studio for setting breakpoints?
