Wowza Community

Eclipse remote debug

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

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

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

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

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

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/

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?

Sorry for the stupid question I got it…

./startup.sh