beautypg.com

5 switching java “system.out” to ide debug window, Switching java “system.out” to ide debug window, Figure 57 – Siemens XT65 User Manual

Page 96

background image

Java User’s Guide

11.5 Switching Java “System.out” to IDE Debug Window

97

s

wm_java_usersguide_v12

Page 96 of 123

2008-02-25

Confidential / Released

11.5

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

Section 5.9

“System Out” and

Section 5.9.3

“UDP”. Switching between

Java “System.out” using serial port and Java “System.out” using UDP socket is done by a set-
ting inside of the emulator configuration file “WM_Debug_config.ini” (e.g. TC65 Release 2:
located under “TC65_R2\WTK\bin”, TC65 Release 3: located Windows OS dependent under
"Application Data" folder as described in

Section 11.2

). Switching Java “System.out” to serial

port is used as default setting.

Figure 57: Emulator configuration file “switching Java System.out to serial port”

The following line of the “WM_Debug_config.ini” file is used for switching the Java “System.out”
direction:

#UDPport=12345

To switch the Java “System.out” direction to the UDP socket and display it on a IDE window
please remove “#”. The configuration line looks as follows:

UDPport=12345

To switch the Java “System.out” direction to serial port output please add “#” (default setting).
The configuration line looks as follows:

#UDPport=12345

Remarks:
Please keep in mind that the handling of Java “System.out” is done asynchronous. It is possi-
ble, that not all Java “System.out” data are written into the IDE window. To avoid this problem
please set a breakpoint in front of the Java function call “notifyDestroyed()” inside your Java
source.

Java “System.out” using IDE window is only supported during debugging session.

This manual is related to the following products: