Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4362594

JDWP: Need a way to send output and error streams to debugger

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 10
    • 1.3.0, 5.0
    • core-svc
    • generic, sparc
    • generic, solaris_7


      With the old jdb/sun.tools.debug remote debugging the standard output
      and error streams in the VM/agent were redirected to the socket
      connection to the debugger. This was a very useful feature (perhaps
      side effect) as it allowed a tty debugger to print the output and
      error streams to the console in the debugger.

      JDWP uses a structured message exchange between the debugger and
      debuggeer and the protocol doesn't appear to allow a streams to
      be encapsulated and thus it doesn't appear to be possible to
      redirect output and error streams to the debugger.

      This RFE is to support redirecting of output and error streams
      to the debugger. This is only applicable to the socket transport
      at this time. It may be necessary to use an additional socket
      connection rather than stretching the JDWP protocol.

      In implementation terms the socket transport could support a
      redirectoutput={y,n} option and if so it connects to a socket
      that the debugger has binded too. On the debugger side a thread
      could bind to a port and wait for messages to arrive. With a
      tty debugger these messages could be printed to the console.
      In a graphical debugger these could be displayed in an output
      window.

            Unassigned Unassigned
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: