Skip to content

Eclipse Debuging Tips

Debugging punch command line tools

Here is how to debug channelctl, punchlinectl and the others. You must have imported the pp-grok and pp-core maven folders into your eclipse.

From there locate the org.thales.punch.cli.punchctl.PunchCtl class. There debug the main function: Debug As -> Java Application. It will not work but it will create a debug environment for that package and class.

From there open Debug Preferences and do the following : - add the argument you need : for example : "--tenant mytenant start --channel elastalert" - add the environment variables as part of your debug configuration - add the Jvm options :

    -Xmx2g -Xms256m


To get the value of the PUNCHPLATFORM_INSTALL_DIR and PUNCHPLATFORM_LOG_DIR of your platform simply type in

Debugging Shiva Daemon

  • package : punchplatform-shiva-app
  • main class : org.thales.punch.apps.shiva.Main
  • main arguments:
    daemon --runner-tag punchline --kafka localhost:9200 --cluster-name local
  • jvm arguments:
    -server -Xmx128m -Xms128m  -Dpunchplatform.log.dir=~/standalone/external/punchplatform-shiva-6.1.0/logs -Dlog4j.configurationFile=~/standalone/external/punchplatform-shiva-6.1.0/log4j2/log4j2.xml -Dlog4j.configuration=file://~/standalone/external/punchplatform-shiva-6.1.0/log4j2/ -Dpunchplatform.shivaFeaturesDir=/~/standalone/external/punchplatform-shiva-6.1.0/features