# Eclipse remote debug

**URL:** <https://community.wowza.com/t/eclipse-remote-debug/230>\
**Category:** Wowza Streaming Engine\
**Created:** [February 11, 2008, 4:05pm UTC](https://community.wowza.com/t/eclipse-remote-debug/230 "2008-02-11T16:05:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [February 11, 2008, 4:05pm UTC](https://community.wowza.com/t/eclipse-remote-debug/230/1 "2008-02-11T16:05:04Z")

</div>

Hi,

I was wondering if wowza had any tutorial for setting up a remote debug environnement for Eclipse.

I’ve found this article on the subject: [http://www.eclipsezone.com/eclipse/forums/t53459.html](http://www.eclipsezone.com/eclipse/forums/t53459.html)

But I really don’t know where to start or which of the project to use.

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [February 11, 2008, 8:12am UTC](https://community.wowza.com/t/eclipse-remote-debug/230/2 "2008-02-11T08:12:21Z")

</div>

I have never tried it. I would just give the instructions a whirl. You can set the Java options needed in **[install-dir]/bin/setenv.sh**. You will need to remove the double quotes around the options. Let me know how it goes.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [February 11, 2008, 8:53am UTC](https://community.wowza.com/t/eclipse-remote-debug/230/3 "2008-02-11T08:53:30Z")

</div>

Couple thoughts. First, Amazon EC2 does something with capturing the console output. You can view it in the Firefox EC2 plugin. So maybe this grabbing the console output. Second, Wowza Pro uses log4j to send data to the console. Maybe the Eclipse remote debugging is not able to grab this console output (I double this is the issue but worth mentioning).

I might try adding System.out.println() statements to your code to see if those are output to Eclipse. I might also try remote debugging to a non-Amazon EC2 machine to see if this issue is specific to EC2.

I hope this helps.

Charlie

---

<div class="post-metadata">

**Author:** ![Guillaume\_Malartre](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guillaume\_Malartre](https://community.wowza.com/u/Guillaume_Malartre)\
**Post date:** [February 11, 2008, 4:44pm UTC](https://community.wowza.com/t/eclipse-remote-debug/230/4 "2008-02-11T16:44:50Z")

</div>

I edited the setenv and it worked fine on my EC2 instance. I see all the thread running in eclipse but I don’t have the console output. Any idea about the console?

EXECJAVA=java

#JAVA\_OPTS="-Xmx1G"

JAVA\_OPTS="-Xdebug -Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=1044"

WMSAPP\_HOME=/usr/local/WowzaMediaServerPro

WMSCONFIG\_HOME=/usr/local/WowzaMediaServerPro

WMSCONFIG\_URL=

export WMSAPP\_HOME WMSCONFIG\_HOME JAVA\_OPTS \_EXECJAVA

---

<div class="post-metadata">

**Author:** ![Guillaume\_Malartre](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guillaume\_Malartre](https://community.wowza.com/u/Guillaume_Malartre)\
**Post date:** [February 11, 2008, 5:44pm UTC](https://community.wowza.com/t/eclipse-remote-debug/230/5 "2008-02-11T17:44:07Z")

</div>

Hi Charlie,

I tried System.out.println() and I looked at the console output of my ec2 instance with the Firefox EC2 plugin and it didn’t give the result wished.

I’ve found a Red5 tutorial on the subject [http://sziebert.net/posts/remote-debugging-red5-applications/](http://sziebert.net/posts/remote-debugging-red5-applications/)

They are using the linux instance to see what’s going on in the console. Is there a way to start the Wowza service with the console displaying like they do in Red5?

---

<div class="post-metadata">

**Author:** ![Guillaume\_Malartre](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Guillaume\_Malartre](https://community.wowza.com/u/Guillaume_Malartre)\
**Post date:** [February 11, 2008, 6:05pm UTC](https://community.wowza.com/t/eclipse-remote-debug/230/6 "2008-02-11T18:05:15Z")

</div>

Sorry for the stupid question I got it…

./startup.sh
