Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | The Adapter Definition | Deploying the adapter | Debugging the Adapter
 
Debugging the Adapter
1. Shut down your Integration Server .
2. Modify the script Software AG_directory \profiles\IS_<instance_name>\bin\startDebugMode.bat (or startDebugMode.sh in a UNIX environment).
Set SUSPEND_MODE to n.
set SUSPEND_MODE=n
3. Start Integration Server in the debug mode by executing startDebugMode.bat (or startDebugMode.sh in a UNIX environment).
4. Create a script to attach the debugger to Integration Server.
For example debug.bat:
rem @echo off
set TARGET="C:\softwareag\912\IntegrationServer\instances\default\packages\MyAdapter\code\source"
set JAVA_MIN_MEM=64M
set JAVA_MAX_MEM=64M
set JAVA_MEMSET=-ms%JAVA_MIN_MEM% -mx%JAVA_MAX_MEM%
set JAVA_DBG="C:\softwareag\912\jvm\jvm\bin\jdb"
set ARGS=com.sun.jdi.SocketAttach:hostname=localhost,port=10033
%JAVA_DBG% -sourcepath %TARGET% -connect %ARGS%
5. Run the debug script.
debug.bat (or debug.sh in a UNIX environment).
You can attach to Integration Server and "step" your code (assuming you compiled your code to include debug symbols (for example, javac -g) ) using your favorite debugger.