> 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 connection 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 setting 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 possible, 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.