Results 1 to 4 of 4

Thread: Remote module debugging from IDE

  1. #1

    Default Remote module debugging from IDE

    Hi,

    I'm using Intellij IDEA and wonder if it is possible to debug a module remotely, i.e. adding
    Code:
    JAVA_OPTS=-Xdebug" "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
    in Wowza startup.sh file?

    Are there any alternative ways to debug module from IDE?

    Thanks

  2. #2

    Default

    Yes it is possible and I do this all the time. I find it easiest to make a copy of startup.sh and use this for debugging. There are already JAVA_OPTS defined so be careful that you add to these instead of overwriting them.

    I use eclipse (WowzaIDE) and can run a debug session locally direct from eclipse. Not sure if idea has the same functionality.

  3. #3

    Default

    Got it working
    In startup.sh JAVA_OPTS should be appended with VM options (not overriden).

    Here is my startup script:

    Code:
    #!/bin/sh
    . ./setenv.sh
    
    #chmod 600 ../conf/jmxremote.password
    #chmod 600 ../conf/jmxremote.access
    
    # NOTE: Here you can configure the JVM's built in JMX interface.
    # See the "Server Management Console and Monitoring" chapter
    # of the "User's Guide" for more information on how to configure the
    # remote JMX interface in the [install-dir]/conf/Server.xml file.
    
    JMXOPTIONS=-Dcom.sun.management.jmxremote=true
    #JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
    #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.port=1099"
    #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
    #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
    #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
    #JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
    
    # JVM options for remote debugging
    JAVA_OPTS="$JAVA_OPTS "-Xdebug" "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
    
    ulimit -n 20000 > /dev/null 2>&1
    
    # log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
    $_EXECJAVA $JAVA_OPTS $JMXOPTIONS -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start

  4. #4

    Default

    Hi Trendkill, I am using WebStorm from JetBrains and was wondering about using IntelliJ IDEA for Wowza. How do you like it over Eclipse?

    Can you give me any pointers for getting that environment set up?

    Thanks,
    Bryan

Similar Threads

  1. Replies: 6
    Last Post: 03-15-2012, 04:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •