Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

While it's not strictly required, the first step should be building Java code with debug information:

Code Block
   cd {path/to/sipXconfig/build/dir}
  export JAVA_CC_FLAGS="-g:source,lines,vars"../configure --enable-debug
  # recompile all of sipx, or individial projects (e.g. make sipXcommons sipXconfig), it's up to you
  make sipx
Tip
4.4 developers
4.4 developers

This only applies to sipxecs 4.4 or older systems

Code Block
   JAVAC_DEBUG=on JAVAC_OPTIMIZED=off {path/to/sipXconfig/source/dir}/configure <other configure params>
  make all install

To launch the program in debug mode you need to set debug options, including the communication port for the debugger. sipXconfig startup script lets you pass the necessary information through environment variables.

Code Block

  export SIPXCONFIG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4241"

...

  • open Run->Debug... window
  • select Java Remote Application
  • click

    Code Block
    New
  • select sipXconfig project, enter host (localhost if you are using it on the same machine) and port number configured in SIPXCONFIG_OPTS
  • choose a name for your configuration and save it
  • start sipXconfig (by starting sipxpbx) and connect to it by selecting the newly created debug configuration from the Debug window - you'll be placed in DEBUG mode when the application hits one of your breakpoints

...