JDK-4446286 : Println message is not reflected to remote debugging machine
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.3.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-04-17
  • Updated: 2001-04-17
  • Resolved: 2001-04-17
Related Reports
Duplicate :  
Description
When I debug some java program running on target WorkStation from remote PC, 
the stdout(System.out.println) does not echo back to the remote PC.

1. Debugging environment

  - Target WorkStation ( target )
    - SunOS goedel 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-60
      (solaris is localized "Japanese")
    - Mem. : 256 [MB]
    - JDK ver. : 
       java version "1.3.0"
       Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
       Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


  - Remote PC ( debugger )
    - WindowsNT 4.0  workstation (SP5, Japanese)
    - Pentium II 400[MHz]
    - Mem. : 256 [MB]
    - JDK ver. :
       java version "1.3.0"
       Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
       Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

2. Reproducing process

 1) Compile the attached java program, "Test.java"  on the target machine
 2) Invoke the following command line on the target machine

    "java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y Test"

 3) Invoke the following command line on the remote PC
    (please replace the HOSTNAME to your target machine name)

    "jdb -connect com.sun.jdi.SocketAttach:hostname=HOSTNAME,port=8888"

    -> you can see the message,

      Initializing jdb...

      VM Started: main[1] No frames on the current call stack^M

      main[1]

  4) Type "run" on remote PC

     -> You can see the message as follows on the **TARGET** machine.

       abcde
       abcde
       abcde
  
   I consider the message "abcd" should be displayed on the remote PC.
   However, that showed up on the target machine.

   I wonder if the above behavior is specifications.
   If so, is there any way to echo back the message to remote PC ?

============================================================================
  
  

Comments
PUBLIC COMMENTS .
10-06-2004

EVALUATION tim.bell@Eng 2001-04-17 This is a duplicate of 4362594 Synopsis: JDWP: Need a way to send output and error streams to debugger
17-04-2001