Cep Terminals GSM/GPRS TERMINAL CT63 JAVA 6203 用户手册

产品代码
6203
下载
页码 109
Java User’s Guide
10.4 Switching Java "System.out" to IDE Debug Window
84
wm_java_usersguide_v19
Page 83 of 109
2012-01-27
Confidential / Released
10.4
Switching Java "System.out" to IDE Debug Window
The Java "System.out" can be redirected during a debugging session using a UDP socket con-
nection as described in 
 and 
Switching between Java "System.out" 
using serial port and Java "System.out" using UDP socket is done by a setting inside of the 
emulator configuration file "WM_Debug_config.ini" located in the WTK binary directory "Pro-
gram Files\Cinterion\CMTK\ABC2\WTK\bin". Switching Java "System.out" to serial port is used 
as default setting.
This is the default "WM_Debug_config.ini" file as installed by the WTK setup:
The <UDPport> parameter of the "WM_Debug_config.ini" file is used for switching the Java 
"System.out" direction. To switch the Java "System.out" direction to the UDP socket and dis-
play it on a IDE window please remove "#" in front of the parameter. To switch the Java "Sys-
tem.out" direction to serial port output please add "#" (default setting).
Alternatively to modifying the "WM_Debug_config.ini" file it is possible to configure the UDP 
port via the emulator's command line parameter "-udpport:<port>". Additional emulator param-
eters for debugging can be configured through the Java IDEs. Please note that configuration 
via command line parameter overwrites a possible UDP port configuration of the ini file.

# This ini file is used to configure emulator.exe
#
[General]
# Define the used module type
ModuleType=ABC2
ConnectionName=IP connection for remote debugging of ABC2
[AT command]
# These AT commands are used for initialising the module for debugging!
# Hints:
# ------
# The IP address range 10.x.x.x is not supported for configuration of debugging!
AT-Cmd1=S:ATE1
AT-Cmd2=R:OK
AT-Cmd3=S:at+cpin?
AT-Cmd4=R:+CPIN: READY
AT-Cmd5=R:OK
AT-Cmd6=S:at^scfg=userware/debuginterface,"192.168.0.2","192.168.0.1","0"
AT-CMd7=R:^SCFG: "Userware/DebugInterface","192.168.0.2","192.168.0.1","0"
AT-Cmd8=R:OK
AT-Cmd9=S:at^scfg=userware/mode,"debug","a:/","2000"
AT-Cmd10=R:^SCFG: "Userware/Mode","debug","a:/","2000"
AT-Cmd11=R:OK
AT-Cmd12=S:at^scfg=userware/stdout,UDP,
AT-Cmd13=R:^SCFG: "Userware/Stdout","UDP","
AT-Cmd14=R:OK
[Debug]
# used UDP port number range: 1024 ... 65535
# comment out the following line for switching off Java "System.out" displaying in the IDE window
#UDPport=12345
# settings for Debug Agent delay timer in ms
#DATimer=2000