# Remote debugging with Eclipse

**URL:** <https://community.okteto.com/t/remote-debugging-with-eclipse/1377>\
**Category:** How Do I?\
**Created:** [February 4, 2025, 9:12am UTC](https://community.okteto.com/t/remote-debugging-with-eclipse/1377 "2025-02-04T09:12:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/mario/32/292_2.png) [@mario](https://community.okteto.com/u/mario)\
**Post date:** [February 4, 2025, 9:12am UTC](https://community.okteto.com/t/remote-debugging-with-eclipse/1377/1 "2025-02-04T09:12:58Z")

</div>

Hi, Im trying to debug my remote container running with Okteto in Eclipse and I don’t know how to do it.

---

<div class="post-metadata">

**Author:** ![mario](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/mario/32/292_2.png) [@mario](https://community.okteto.com/u/mario)\
**Post date:** [February 4, 2025, 9:54am UTC](https://community.okteto.com/t/remote-debugging-with-eclipse/1377/2 "2025-02-04T09:54:29Z")

</div>

Hello!

This are the steps to remote debugging with Eclipse.

## Deploy your app in Okteto

You can use this example to test it: [GitHub - okteto/microservices-demo: A sample application with Go, Java, Javascript, Kafka and Postgres](https://github.com/okteto/microservices-demo)

Once you have it locally, just run `okteto up vote` and wait until it deploys all the services and starts a dev session with your `vote` service.

You will see something like this in the logs:` Listening for transport dt_socket at address: 5005`  
Which means that the container app is listening on that port.

If you check the `okteto manifest` in the repository, you will see for that service:

```yaml
dev:
  vote:
    command: mvn spring-boot:run
    sync:
      - ./vote:/app
    forward:
    - 5005:5005

```

That means that okteto will open a connection between your local 5005 and the remote container 5005 port.

**Now we just need to connect our Eclipse Debugger to that container!**

## Eclipse Configuration

Open the repository in your Eclipse IDE locally.

Go to **Run → Debug Configurations → Remote Java Application**

And create one as this example (notice that we are attaching the connection to a remote container listening on that port from your localhost in the port specified in the `okteto manifest`)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/okteto/original/1X/c73725439683d2b6fb1b300d09bf79913bc1de06.png)

Now you can **Right Click** on the service you want to debug (for this example **VOTE** service).  
Don’t forget to add your breakpoints 😊

**→ Debug Us → Debug Configurations → The one you created**

## Debugging

If everything goes well, now the you are connected to that remove JVM. You just need to hit the endpoint of the service so that the code stops where you added the breakpoint.

https://vote-{OKTETO\_NAMESPACE}.{OKTETO\_DOMAIN}

And you should see the Debug view of Eclipse:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/okteto/original/1X/fe8f2838fd20473217f184de42fe27f7633c4b36.png)

Enjoy it!
