...
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} ../configure --enable-debug # recompile all of sipx, or individial projects (e.g. make sipXcommons sipXconfig), it's up to you make sipx |
Tip | ||||
---|---|---|---|---|
| ||||
This only applies to sipxecs 4.4 or older systems
|
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
...